-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (80 loc) · 3.16 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
group 'ElephantNoteFX'
version 'ElephantNoteFX-0.1'
buildscript {
dependencies {
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2'
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
apply plugin: 'java'
apply plugin: 'idea'
repositories {
mavenLocal()
mavenCentral()
jcenter {
url "http://jcenter.bintray.com/"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.8.47'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.7.0'
testCompile group: 'org.powermock', name: 'powermock-api-mockito2', version: '1.7.0'
// testCompile group: 'org.powermock', name: 'powermock-core', version: '1.7.0'
runtime(['org.controlsfx:controlsfx:8.40.13',
'org.xerial:sqlite-jdbc:3.19.3',
'com.j256.ormlite:ormlite-core:5.0',
'com.j256.ormlite:ormlite-jdbc:5.0',
'org.apache.commons:commons-lang3:3.4'
])
compile 'com.j256.ormlite:ormlite-core:5.0'
compile 'com.j256.ormlite:ormlite-jdbc:5.0'
compile 'org.apache.commons:commons-lang3:3.4'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
compile 'commons-io:commons-io:2.4'
compile 'org.controlsfx:controlsfx:8.40.13'
compile group: 'org.jfxtras', name: 'jfxtras-controls', version: '8.0-r5'
compile 'com.google.inject:guice:4.1.0'
compile 'com.gluonhq:ignite-guice:1.0.1'
compile 'org.projectlombok:lombok:1.16.18'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9,0'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.0'
compile 'org.jsoup:jsoup:1.8.3'
compile 'org.apache.logging.log4j:log4j-api:2.4.1'
compile 'org.apache.logging.log4j:log4j-core:2.4.1'
// FontAwesomeFx
compile 'de.jensd:fontawesomefx-commons:8.15'
compile 'de.jensd:fontawesomefx-materialicons:2.2.0-5'
compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4'
compile 'de.jensd:fontawesomefx-octicons:4.3.0-5'
}
apply plugin: "com.github.johnrengelman.shadow"
//create single jar with all dependencies
shadowJar {
baseName = 'NoteFX'
version = null
manifest {
attributes 'Main-Class': 'com.kn.elephant.note.Main'
attributes 'Permissions': 'all-permissions'
}
}
apply plugin: 'javafx-gradle-plugin'
jfx {
// minimal requirement for jfxJar-task
mainClass 'com.kn.elephant.note.Main'
// minimal requirement for jfxNative-task
vendor = 'KamilN-NoteFX'
appName = "Note-FX-Alpha"
additionalBundlerResources = 'src/main/resources'
copyAdditionalAppResourcesToJar = true
}
//gradle jfxJar - Create executable JavaFX-jar
//gradle jfxNative - Create native JavaFX-bundle (will run jfxJar first)
//gradle jfxRun - Create the JavaFX-jar and runs it like you would do using java -jar my-project-jfx.jar,