-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
81 lines (64 loc) · 1.78 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.0.1/userguide/tutorial_java_projects.html
*/
plugins {
id 'java'
id 'idea'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.runtime' version '1.8.0'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.2'
implementation group: 'org.json', name: 'json', version: '20190722'
implementation group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.10.4'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// Apache POI
implementation 'org.apache.poi:poi:5.2.0'
implementation 'org.apache.poi:poi-ooxml:5.2.0'
}
javafx {
version = "13"
modules = [ 'javafx.base', 'javafx.controls', 'javafx.fxml', 'javafx.swing' ]
}
mainClassName = 'application.Launcher'
sourceSets {
main {
resources {
srcDirs = ["src/main/resources"]
includes = ["**" ]
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
systemProperty "file.encoding", "utf-8"
}
jar {
manifest {
attributes 'Main-Class': 'application.Launcher'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
imageZip = file("$buildDir/uPMT.zip")
}
application {
mainClassName = 'application.Launcher'
}
run {
jvmArgs = ['--add-exports', 'javafx.graphics/com.sun.javafx.css=ALL-UNNAMED']
}