-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (78 loc) · 2.11 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
plugins {
id "java"
id "application"
id "org.openjfx.javafxplugin" version "0.0.9"
id "edu.sc.seis.launch4j" version "2.5.0"
id "io.freefair.lombok" version "6.0.0-m2"
id "org.beryx.runtime" version "1.12.4"
}
group "com.github.theintelligentone"
version "v0.3.0-beta"
def MAINPATH = "com.github.theintelligentone.fgotracker.Main"
mainClassName = MAINPATH
repositories {
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:5.7.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.7.2"
implementation "com.fasterxml.jackson.core:jackson-databind:2.12.5"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.5"
runtimeOnly "org.openjfx:javafx-graphics:15:win"
runtimeOnly "org.openjfx:javafx-graphics:15:linux"
runtimeOnly "org.openjfx:javafx-graphics:15:mac"
compile 'org.kohsuke:github-api:1.132'
compile "com.opencsv:opencsv:5.5"
compile 'ch.qos.logback:logback-classic:1.2.5'
}
application {
mainClassName MAINPATH
applicationName = "FGO Tracker"
}
compileJava {
options.compilerArgs.add("-encoding")
options.compilerArgs.add("UTF-8")
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Main-Class': MAINPATH
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
javafx {
version = "16"
modules = ["javafx.fxml", "javafx.controls", "javafx.swing", "javafx.web"]
}
launch4j {
mainClassName MAINPATH
copyConfigurable = []
bundledJrePath = "./jre"
bundledJre64Bit = true
jdkPreference = "jdkOnly"
}
task embedJre {
dependsOn("createExe")
copy {
from System.getenv("JAVA_HOME") + "/bin"
into "${buildDir}/launch4j/jre/bin"
}
copy {
from System.getenv("JAVA_HOME") + "/lib"
into "${buildDir}/launch4j/jre/lib"
}
copy {
from System.getenv("JAVA_HOME") + "/conf"
into "${buildDir}/launch4j/jre/conf"
}
}
runtime {
options = ["--strip-debug", "--no-header-files", "--no-man-pages"]
}
clean {
delete 'data'
}