Skip to content

Commit

Permalink
Bump toolchain to J11 because JGit 6.7 requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
LexManos committed Dec 23, 2023
1 parent d020e15 commit 984082f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
uses: MinecraftForge/SharedActions/.github/workflows/gradle.yml@main
with:
java: 8
java: 11
gradle_tasks: "publish publishPlugins"
artifact_name: "gradleutils"
secrets:
Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ dependencies {
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
// JGit 6.7 requires Java 11
toolchain.languageVersion = JavaLanguageVersion.of(11)
withSourcesJar()
}

Expand Down
3 changes: 2 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ repositories {
mavenCentral()
}

java.toolchain.languageVersion = JavaLanguageVersion.of(8)
// JGit 6.7 requires Java 11
java.toolchain.languageVersion = JavaLanguageVersion.of(11)

dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.7.0.202309050840-r'
Expand Down

0 comments on commit 984082f

Please sign in to comment.