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