File tree 6 files changed +27
-13
lines changed
6 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,6 @@ allprojects {
12
12
mavenCentral()
13
13
}
14
14
15
- tasks. withType(JavaCompile ). tap {
16
- configureEach {
17
- sourceCompatibility = JavaVersion . VERSION_1_8
18
- targetCompatibility = JavaVersion . VERSION_1_8
19
- }
20
- }
21
-
22
15
tasks. withType(Jar ). tap {
23
16
configureEach {
24
17
from(project. rootDir) {
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ plugins {
2
2
id ' application'
3
3
}
4
4
5
- repositories {
6
- mavenCentral()
5
+ java {
6
+ toolchain {
7
+ languageVersion. set(JavaLanguageVersion . of(8 ))
8
+ }
7
9
}
8
10
9
11
application {
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java-library'
3
- id ' com.github.johnrengelman.shadow' version ' 7.0.0 '
3
+ id ' com.github.johnrengelman.shadow' version ' 7.1.2 '
4
4
id ' checkstyle'
5
5
id ' maven-publish'
6
6
id ' signing'
7
7
}
8
8
9
- repositories {
10
- mavenCentral()
9
+ java {
10
+ toolchain {
11
+ languageVersion. set(JavaLanguageVersion . of(8 ))
12
+ }
11
13
}
12
14
13
15
dependencies {
44
46
45
47
shadowJar {
46
48
with jar
47
- archiveClassifier. set(null )
48
49
}
49
50
50
51
apply from : " $rootDir /publish.gradle"
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ plugins {
4
4
id ' signing'
5
5
}
6
6
7
+ java {
8
+ toolchain {
9
+ languageVersion. set(JavaLanguageVersion . of(8 ))
10
+ }
11
+ }
12
+
7
13
def packageName = ' imgui-java-natives-linux'
8
14
def packageDesc = ' Native binaries for imgui-java binding for Linux'
9
15
def moduleName = ' imgui.natives.linux'
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ plugins {
7
7
id ' signing'
8
8
}
9
9
10
+ java {
11
+ toolchain {
12
+ languageVersion. set(JavaLanguageVersion . of(8 ))
13
+ }
14
+ }
15
+
10
16
dependencies {
11
17
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.5.2'
12
18
testImplementation ' org.junit.jupiter:junit-jupiter-engine:5.5.2'
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ plugins {
5
5
id ' signing'
6
6
}
7
7
8
+ java {
9
+ toolchain {
10
+ languageVersion. set(JavaLanguageVersion . of(8 ))
11
+ }
12
+ }
13
+
8
14
dependencies {
9
15
implementation platform(" org.lwjgl:lwjgl-bom:$lwjglVersion " )
10
16
You can’t perform that action at this time.
0 commit comments