Skip to content

Instantly share code, notes, and snippets.

@crazy4groovy
Forked from deanriverson/build.gradle
Last active December 23, 2015 13:29
Show Gist options
  • Save crazy4groovy/6642186 to your computer and use it in GitHub Desktop.
Save crazy4groovy/6642186 to your computer and use it in GitHub Desktop.
Gradle build file for GroovyFX.
apply plugin:'groovy'
project.javafxHome = System.env['JAVAFX_HOME']
repositories { mavenCentral() }
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.6'
compile 'org.codehaus.groovyfx:groovyfx:0.3.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.7'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment