Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit b3e6252

Browse files
authored
Update build.gradle
1 parent 39642d3 commit b3e6252

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ plugins {
2323
id "org.jetbrains.kotlin.plugin.serialization" version "1.5.30"
2424
}
2525

26-
sourceCompatibility = JavaVersion.VERSION_16
27-
targetCompatibility = JavaVersion.VERSION_16
26+
sourceCompatibility = JavaVersion.VERSION_1_8
27+
targetCompatibility = JavaVersion.VERSION_1_8
2828

2929
archivesBaseName = project.archives_base_name
3030
version = project.mod_version
@@ -65,16 +65,16 @@ test {
6565
tasks.withType(JavaCompile).configureEach {
6666
it.options.encoding = "UTF-8"
6767
// Minecraft 1.17 (21w19a) upwards uses Java 16.
68-
it.options.release = 16
68+
it.options.release = 8
6969
}
7070

7171
compileKotlin {
72-
kotlinOptions.jvmTarget = "16"
72+
kotlinOptions.jvmTarget = "8"
7373
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
7474
}
7575

7676
compileTestKotlin {
77-
kotlinOptions.jvmTarget = "16"
77+
kotlinOptions.jvmTarget = "8"
7878
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
7979
}
8080

@@ -107,4 +107,4 @@ task publishModrinth(type: TaskModrinthUpload) {
107107
addDependency("E4QBMVtO", Dependency.DependencyType.REQUIRED)
108108
addDependency("1qsZV7U7", Dependency.DependencyType.REQUIRED)
109109
changelog = file("CHANGELOG.md").getText("UTF-8")
110-
}
110+
}

0 commit comments

Comments
 (0)