@@ -5,15 +5,15 @@ plugins {
5
5
id ' org.openjfx.javafxplugin' version ' 0.0.8'
6
6
}
7
7
8
- sourceCompatibility = 1.17
9
- targetCompatibility = 1.17
8
+ sourceCompatibility = 1.21
9
+ targetCompatibility = 1.21
10
10
11
11
repositories {
12
12
mavenCentral()
13
13
}
14
14
15
15
javafx {
16
- version = " 17 "
16
+ version = " 21 "
17
17
modules = [ ' javafx.controls' , ' javafx.base' , ' javafx.fxml' , ' javafx.graphics' , ' javafx.media' ]
18
18
}
19
19
@@ -38,22 +38,22 @@ sourceSets {
38
38
sourceSets. test. resources
39
39
40
40
dependencies {
41
- testCompile group : ' junit' , name : ' junit' , version : ' 4.12'
42
- compile group : ' junit' , name : ' junit' , version : ' 4.12'
41
+ testImplementation group : ' junit' , name : ' junit' , version : ' 4.12'
42
+ implementation group : ' junit' , name : ' junit' , version : ' 4.12'
43
43
// Library for JSON
44
- compile group : ' com.googlecode.json-simple' , name : ' json-simple' , version : ' 1.1'
44
+ implementation group : ' com.googlecode.json-simple' , name : ' json-simple' , version : ' 1.1'
45
45
// Command line argument parsing
46
- compile group : ' commons-cli' , name : ' commons-cli' , version : ' 1.4'
46
+ implementation group : ' commons-cli' , name : ' commons-cli' , version : ' 1.4'
47
47
// Reflect for loading class in the GUI
48
- compile " org.reflections:reflections:0.9.11"
48
+ implementation " org.reflections:reflections:0.9.11"
49
49
// MongoDB Driver
50
- compile ' org.mongodb:mongodb-driver:3.4.3'
50
+ implementation ' org.mongodb:mongodb-driver:3.4.3'
51
51
// File IO library for copying directories
52
- compile group : ' org.apache.commons' , name : ' commons-io' , version : ' 1.3.2'
52
+ implementation group : ' org.apache.commons' , name : ' commons-io' , version : ' 1.3.2'
53
53
// Library for parsing the java AST
54
- compile ' com.github.javaparser:javaparser-core:3.5.2'
54
+ implementation ' com.github.javaparser:javaparser-core:3.5.2'
55
55
// YAML parser
56
- compile group : ' org.yaml' , name : ' snakeyaml' , version : ' 1.26'
56
+ implementation group : ' org.yaml' , name : ' snakeyaml' , version : ' 1.26'
57
57
58
58
// V2 Dependencies
59
59
implementation ' info.picocli:picocli:4.2.0'
@@ -70,23 +70,25 @@ mainClassName = 'chalkbox.api.ChalkBox'
70
70
71
71
javadoc {
72
72
source = sourceSets. main. allJava
73
- classpath = configurations. compile
73
+ classpath = configurations. implementation
74
74
}
75
75
76
76
jar {
77
77
manifest {
78
78
attributes ' Main-Class' : mainClassName
79
79
}
80
- baseName = project. name
80
+ archiveBaseName = project. name
81
81
}
82
82
83
83
task fatJar (type : Jar ) {
84
84
manifest {
85
85
attributes ' Main-Class' : mainClassName
86
86
}
87
+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
88
+
87
89
exclude ' META-INF/*.RSA' , ' META-INF/*.SF' , ' META-INF/*.DSA'
88
- baseName = project. name + ' -all'
89
- from { configurations. compile . collect { it. isDirectory() ? it : zipTree(it) } }
90
+ archiveBaseName = project. name + ' -all'
91
+ from { configurations. runtimeClasspath . collect { it. isDirectory() ? it : zipTree(it) } }
90
92
with jar
91
93
}
92
94
0 commit comments