Skip to content

Commit

Permalink
Specify correct java version
Browse files Browse the repository at this point in the history
  • Loading branch information
utfunderscore committed May 30, 2024
1 parent 33c712f commit 352ed5d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ repositories {

}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.readutf.minigame"
artifactId = "core"
version = "1.1"

from(components["java"])
}
}
}
tasks.compileJava {
options.compilerArgs.add("-parameters")
}
Expand Down Expand Up @@ -56,8 +67,10 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
}

Expand Down

0 comments on commit 352ed5d

Please sign in to comment.