-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.63 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
plugins {
id 'java'
id 'application'
id 'org.javamodularity.moduleplugin' version '1.8.9'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.beryx.jlink' version '2.26.0'
}
group 'org.example'
version '1.0'
javafx {
version = "19"
modules = ['javafx.controls', 'javafx.fxml']
}
application {
mainModule = 'DiskCleanup.main'
mainClass = 'org.example.Main'
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages','--bind-services']
forceMerge('org.slf4j')
launcher {
name = 'DiskCleanup'
}
mergedModule {
requires "org.slf4j"
requires "java.xml"
}
// modules = [
// 'java.desktop',
// 'java.xml',
// 'java.logging',
// 'java.sql',
// 'java.naming',
// 'java.compiler',
// 'java.scripting',
// 'java.management',
// 'java.datatransfer',
// 'java.security.sasl',
// 'jdk.unsupported',
// 'jdk.jfr']
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation group: 'org.apache.tika', name: 'tika-core', version: '2.7.0'
// https://mvnrepository.com/artifact/org.controlsfx/controlsfx
implementation group: 'org.controlsfx', name: 'controlsfx', version: '11.1.2'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.6'
}
test {
useJUnitPlatform()
}