File tree 4 files changed +33
-12
lines changed
4 files changed +33
-12
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ plugins {
9
9
group = ss_group
10
10
version = ' 4.3.1'
11
11
12
- application {
13
- mainClass = ss_main_class
14
- }
15
-
16
12
repositories {
17
13
mavenCentral()
18
14
}
@@ -31,12 +27,24 @@ dependencies {
31
27
implementation " org.openjfx:javafx-controls:$javafx . version :mac"
32
28
}
33
29
30
+ java {
31
+ toolchain {
32
+ languageVersion = JavaLanguageVersion . of(java_language_version)
33
+ }
34
+ }
35
+
36
+ application {
37
+ mainClass = ss_main_class
38
+ }
39
+
34
40
javafx {
35
41
version = " 17.0.13"
36
42
modules = [' javafx.controls' ]
37
43
}
38
44
39
- jar. enabled = false
45
+ jar {
46
+ enabled = false
47
+ }
40
48
41
49
// Configure the shadowJar task (with JavaFX)
42
50
shadowJar {
Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ plugins {
8
8
group = ss_group
9
9
version = ' 4.3.1'
10
10
11
- application {
12
- mainClass = ss_main_class
13
- }
14
-
15
11
repositories {
16
12
mavenCentral()
17
13
}
@@ -24,8 +20,19 @@ dependencies {
24
20
implementation fileTree(dir : ' libs' , include : ' *.jar' )
25
21
}
26
22
23
+ java {
24
+ toolchain {
25
+ languageVersion = JavaLanguageVersion . of(java_language_version)
26
+ }
27
+ }
27
28
28
- jar. enabled = false
29
+ jar {
30
+ enabled = false
31
+ }
32
+
33
+ application {
34
+ mainClass = ss_main_class
35
+ }
29
36
30
37
// Configure the shadowJar task (with JavaFX)
31
38
shadowJar {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' edu.sc.seis.launch4j' version ' 2.5.4'
3
- id ' java'
4
-
3
+ id ' java-library'
5
4
}
6
5
7
6
repositories {
@@ -21,6 +20,12 @@ dependencies {
21
20
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.2' , ' com.eclipsesource.minimal-json:minimal-json:0.9.5'
22
21
}
23
22
23
+ java {
24
+ toolchain {
25
+ languageVersion = JavaLanguageVersion . of(java_language_version)
26
+ }
27
+ }
28
+
24
29
test {
25
30
useJUnitPlatform()
26
31
afterTest { desc , result ->
Original file line number Diff line number Diff line change 1
1
ss_main_class = com.superzanti.serversync.ServerSync
2
2
ss_group = com.superzanti.serversync
3
+ java_language_version = 17
3
4
org.gradle.warning.mode =all
You can’t perform that action at this time.
0 commit comments