Skip to content

Commit

Permalink
ci: use JDK17 to enable compatibility with Sonar plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Feb 29, 2024
1 parent c509037 commit 9da6ebd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v3
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/maven-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[maven-release-plugin]') }}
strategy:
matrix:
java: [11]
java: [17]
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
Expand All @@ -28,10 +28,10 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build, test, verify and publish snapshot
run: mvn -B verify -Djdk.version=${{ matrix.java }}
run: mvn -B verify
- name: Publish snapshot
if: ${{ matrix.java == '11' }}
run: mvn deploy -DskipUT -DskipIT -Djdk.version=${{ matrix.java }}
if: ${{ matrix.java == '17' }}
run: mvn deploy -DskipUT -DskipIT
env:
MAVEN_USERNAME: ${{ secrets.DATAVERSEBOT_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.DATAVERSEBOT_SONATYPE_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/maven-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'adopt'
- name: Cache SonarCloud packages
uses: actions/cache@v3
Expand Down

0 comments on commit 9da6ebd

Please sign in to comment.