forked from HanSolo/Enzo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
38 lines (33 loc) · 863 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apply plugin: 'java'
apply plugin: 'idea'
buildscript {
final javaHome = System.env['JAVA_HOME']
if (javaHome) {
ext.javafxJar = "${javaHome}/jre/lib/ext/jfxrt.jar"
}
try {
println "JavaFX runtime jar: ${ext.javafxJar}"
dependencies {
classpath files(ext.javafxJar)
}
} catch (MissingPropertyException mpe) {
println """
| Please set the environment variable JAVA_HOME
| to the directory that contains jre/lib/ext/jfxrt.jar
| of JavaFX version ${requiredJavaFxVersion}.\n""".stripMargin()
System.exit 1
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}
sourceSets {
main {
java {
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
}