Skip to content

Commit

Permalink
Revert ":wrench: Update java version"
Browse files Browse the repository at this point in the history
This reverts commit f2a04ce.
  • Loading branch information
17TheWord committed Feb 14, 2025
1 parent 9e0a3f5 commit fe02494
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spigot/origin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ dependencies {

def targetJavaVersion = Integer.parseInt(java_version)
java {
sourceCompatibility = targetJavaVersion
targetCompatibility = targetJavaVersion
toolchain {
languageVersion = JavaLanguageVersion.of(java_version) // 或者你想要的版本
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}

Expand Down

0 comments on commit fe02494

Please sign in to comment.