Skip to content

Commit

Permalink
Update to java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
li-advait committed Nov 8, 2024
1 parent 34d6a21 commit d9445c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
distribution: "temurin"

- name: Build with Gradle
- name: Build
run: ./gradlew build
env:
ORG_GRADLE_JAVA_HOME: ${{ steps.setup-java.outputs.java-home }}

- name: Publish package
run: ./gradlew publishAllPublicationsToSonatypeSnapshotRepository
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/publish-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
distribution: "temurin"

- name: Build with Gradle
- name: Build
run: ./gradlew build
env:
ORG_GRADLE_JAVA_HOME: ${{ steps.setup-java.outputs.java-home }}

- name: Publish package
run: ./gradlew publishAllPublicationsToMavenCentralRepository
Expand Down

0 comments on commit d9445c6

Please sign in to comment.