Basic Gradle build file for a project using GroovyFX 0.1
apply plugin:'groovy'
javafxHome = System.env['JAVAFX_HOME']
repositories { mavenCentral() }
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.2'
compile 'org.codehaus.groovyfx:groovyfx:0.1'
compile files("${javafxHome}/rt/lib/jfxrt.jar")
}
task run(type: JavaExec) {
main = 'helloGroovyFX'
classpath sourceSets.main.runtimeClasspath
}
task makeDirs(description:'make all dirs for project setup') << {
def sources = [sourceSets.main, sourceSets.test]
sources*.allSource*.srcDirs.flatten().each { File srcDir ->
println "making $srcDir"
srcDir.mkdirs()
}
}
task wrap(type:Wrapper, description:"create a gradlew") {
gradleVersion = '1.0-rc-3'
}