Skip to content

Instantly share code, notes, and snippets.

@jamesthompson
Last active December 12, 2015 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesthompson/4732561 to your computer and use it in GitHub Desktop.
Save jamesthompson/4732561 to your computer and use it in GitHub Desktop.
JavaFX Gradle Build File
group = 'com.malmstadt'
version = 1.0
apply plugin: 'scala'
apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/release/javafx.plugin'
repositories {
mavenCentral()
}
dependencies {
scalaTools 'org.scala-lang:scala-compiler:2.10.0'
compile 'org.scala-lang:scala-library:2.10.0'
}
// Comment this out for regular Ant builds. This is presently set for Zinc incremental fast builds.
tasks.withType(ScalaCompile) {
scalaCompileOptions.useAnt = false
}
sourceSets.main.scala.srcDir "src/main/java"
sourceSets.main.java.srcDirs = []
javafx {
mainClass = 'com.malmstadt.Launch'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment