Skip to content

Commit f910496

Browse files
committed
Update shadow plugin
1 parent d7d91f6 commit f910496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'fabric-loom' version '1.10-SNAPSHOT'
33
id 'legacy-looming' version "1.10-SNAPSHOT" // Version must be the same as fabric-loom's
44
id 'maven-publish'
5-
id 'com.github.johnrengelman.shadow' version '8.1.1'
5+
id 'com.gradleup.shadow' version '8.3.6'
66
id "com.modrinth.minotaur" version "2.+"
77
id 'jacoco'
88
id "org.sonarqube" version "5.0.0.4638"
@@ -79,7 +79,7 @@ processResources {
7979
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
8080
tasks.withType(JavaCompile).configureEach {
8181
it.options.encoding = "UTF-8"
82-
// if (JavaVersion.current().isJava9Compatible()) it.options.release = 8
82+
if (JavaVersion.current().isJava9Compatible()) it.options.release = 17
8383
}
8484

8585
java {
@@ -88,8 +88,8 @@ java {
8888
// If you remove this line, sources will not be generated.
8989
withSourcesJar()
9090

91-
sourceCompatibility = JavaVersion.VERSION_1_8
92-
targetCompatibility = JavaVersion.VERSION_1_8
91+
sourceCompatibility = JavaVersion.VERSION_17
92+
targetCompatibility = JavaVersion.VERSION_17
9393
}
9494

9595
shadowJar {

0 commit comments

Comments
 (0)