Skip to content

Commit

Permalink
Make sure build is done with Java 17 on 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jun 16, 2024
1 parent a121f32 commit d9b3aa0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21
java-version: 17
- name: Initialize caches
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21
java-version: 17
- name: Build artifacts
run: ./gradlew build
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21
java-version: 17
- name: Build artifacts
run: ./gradlew build -Pbuild.release=true
- name: Upload assets to GitHub
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 21
java-version: 17
- name: Initialize caches
uses: actions/cache@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ loom {
}

java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

sourceSets {
Expand Down

0 comments on commit d9b3aa0

Please sign in to comment.