Skip to content

Commit

Permalink
Allow building with JDK 11
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Brandes <[email protected]>
  • Loading branch information
NotMyFault committed Apr 16, 2024
1 parent f91be97 commit cfc0ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
java-version: "11"
- name: "Clean Build"
run: "./gradlew clean build"
- name: "Determine release status"
if: "${{ runner.os == 'Linux' }}"
run: |
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then
echo "STATUS=snapshot" >> $GITHUB_ENV
else
else#
echo "STATUS=release" >> $GITHUB_ENV
fi
- name: "Publish Release"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(11))
}

tasks.compileJava.configure {
Expand Down

0 comments on commit cfc0ef5

Please sign in to comment.