This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (50 loc) · 1.5 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
group 'team10'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "application.Main"
sourceCompatibility = 8
repositories {
mavenCentral()
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Mealtime',
'Implementation-Version': 1.0,
'Main-Class': 'application.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
def jdkHome = System.getenv("JAVA_HOME")
dependencies {
// compile files("$jdkHome/lib/tools.jar")
compile 'org.xerial:sqlite-jdbc:3.8.11.2'
}
sourceSets {
main{
java.srcDir "src"
resources{
srcDirs = ["src"]
includes = ["**/*.fxml"]
}
}
}
// Declares binary plugin and its required JavaFX classpath
apply from: "http://dl.bintray.com/content/shemnon/javafx-gradle/8.1.1/javafx.plugin"
// Configures plugin
javafx {
// Points to JDK and its JavaFX libraries, also declares target runtime JDK
javaRuntime = 'C:/Program Files/Java/jdk1.8.0_65'
// Application name and ID presented by target OS
appID 'Mealtime'
appName 'Team 10 Mealtime'
// Main class of application
mainClass 'application.Main'
// JVM arguments, system properties, application command line arguments
jvmArgs = ['-XX:+AggressiveOpts', '-XX:CompileThreshold=1']
systemProperties = ['prism.disableRegionCaching':'true']
arguments = ['-l', '--fast']
// ...
}