Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 8ef95da

Browse files
author
xtexChooser
committed
build: use Indra java version setter
1 parent 67f3b99 commit 8ef95da

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

build.gradle

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,17 @@ dependencies {
3333
modRuntimeOnly 'me.shedaniel:RoughlyEnoughItems-fabric:9.1.541'
3434
}
3535

36-
sourceCompatibility = JavaVersion.VERSION_17
37-
targetCompatibility = JavaVersion.VERSION_17
36+
indra {
37+
javaVersions {
38+
target 17
39+
}
40+
}
41+
42+
compileKotlin {
43+
kotlinOptions {
44+
jvmTarget = '17'
45+
}
46+
}
3847

3948
loom {
4049
accessWidenerPath.set file("src/main/resources/scp-sharp.accesswidener")
@@ -52,16 +61,6 @@ processResources {
5261
}
5362
}
5463

55-
tasks.withType(JavaCompile).configureEach {
56-
it.options.release.set 17
57-
}
58-
59-
compileKotlin {
60-
kotlinOptions {
61-
jvmTarget = '17'
62-
}
63-
}
64-
6564
jar {
6665
from('LICENSE') {
6766
rename { "${it}_${project.name}" }

0 commit comments

Comments
 (0)