Skip to content

Commit

Permalink
Use the LTS java version on GitHub
Browse files Browse the repository at this point in the history
[skip release]
  • Loading branch information
slawekjaranowski committed Jan 3, 2022
1 parent 6547d44 commit dd499ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-java@v2 # https://github.com/actions/setup-java
with:
java-version: 8
distribution: 'adopt'
distribution: 'temurin'

- name: 3. Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1.0.4 # https://github.com/gradle/wrapper-validation-action
Expand All @@ -53,7 +53,7 @@ jobs:
# Definition of the build matrix
strategy:
matrix:
java: [8, 11, 15]
java: [8, 11, 17]
os: [ ubuntu-latest, windows-latest, macOS-latest ]

steps:
Expand All @@ -65,7 +65,7 @@ jobs:
uses: actions/setup-java@v2 # https://github.com/actions/setup-java
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
distribution: 'temurin'

- name: 3. Build on ${{ matrix.os }} with Java ${{ matrix.java }}
run: ./gradlew build idea
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
distribution: 'temurin'

- name: Build and publish to Sonatype/MavenCentral
run: ./gradlew publishToSonatype closeAndReleaseStagingRepository githubRelease
Expand Down

0 comments on commit dd499ce

Please sign in to comment.