-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
89 lines (70 loc) · 1.98 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.beryx.jlink' version '2.24.1'
}
java {
sourceCompatibility = JavaVersion.VERSION_17;
targetCompatibility = JavaVersion.VERSION_17;
}
// gradle verison > 6.6.1 error
// group 'org.beuwi.msgbot-simulator'
// 현재 JavaFX 15는 에디터 로딩 시 깨져서 로딩되는 문제점이 있음
javafx {
version = '17'
modules = ['javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.swing']
}
application {
mainModule.set('org.beuwi.msgbots')
mainClass.set('org.beuwi.msgbots.Launcher')
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation group: 'net.java.dev.jna', name: 'jna', version: '5.8.0'
// implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '5.8.0'
// implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.1'
// implementation group: 'com.jfoenix', name: 'jfoenix', version: '9.0.10' // 호환성이 안 좋아서 배제시킴
// implementation group: 'org.mozilla', name: 'rhino', version: '1.7.13'
/* implementation (group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
} */
}
compileJava {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:none"
}
run {
jvmArgs '--add-opens', 'javafx.web/javafx.scene.web=org.beuwi.msgbots'
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'Simulator'
}
mergedModule {
requires 'javafx.graphics'
requires 'javafx.base'
}
jpackage {
imageOptions += ['--icon', 'src/main/resources/icon/program.ico']
/* installerOptions = [
'--vendor', 'beuwi',
'--app-version', '0.5.0',
] */
}
}
jar {
manifest {
attributes 'Main-Class': "org.beuwi.msgbots.Launcher"
}
/* from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
} */
}