Maintained by aalmiray
This plugin will ultimately provide gradle build tasks for the JavaFX Deployment tools in the Java 7 JDK.
| Website | https://bitbucket.org/shemnon/javafx-gradle |
|---|---|
| Author | shemnon |
| Version | 0.4.0 |
buildscript {
File javaHome = new File(System.properties['java.home'])
javaHome = javaHome.name == 'jre' ? javaHome.parentFile : javaHome
String jfxrtLocation = new File("${javaHome}/jre/lib/jfxrt.jar").absolutePath
// JavaFX locations for JDK7, JDK7, JDK8
for (location in ['lib/jfxrt.jar', 'jre/lib/jfxrt.jar', 'jre/lib/ext/jfxrt.jar']) {
File file = new File(javaHome, location)
if (file.exists()) {
jfxrtLocation = file.absolutePath
break
}
}
repositories {
jcenter()
maven { url 'http://dl.bintray.com/content/shemnon/javafx-gradle/' }
maven { url 'http://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot' }
}
dependencies {
classpath 'org.bitbucket.shemnon.javafxplugin:gradle-javafx-plugin:0.4.0'
classpath project.files("${javaHome}/lib/ant-javafx.jar")
classpath project.files(jfxrtLocation)
}
}
if (!project.plugins.findPlugin(org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)) {
project.apply(plugin: org.bitbucket.shemnon.javafxplugin.JavaFXPlugin)
}
javafx {
mainClass = 'com.acme.Main'
}