Skip to content

Commit

Permalink
MOD: workflow jdk version to java11
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoJiang committed Dec 15, 2024
1 parent bb631e0 commit ec98e86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
java-version: 11

- name: Setup Gradle
uses: gradle/[email protected]
Expand All @@ -39,12 +39,6 @@ jobs:
- name: Publish To Local
run: ./gradlew publishToMavenLocal -PVERSION_NAME=0.0.0-SNAPSHOT

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Check spotless
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Check out
uses: actions/checkout@v2

- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
java-version: '11'

- name: Build & Publish Kace plugin to Maven Central
run: chmod +x ./publish.sh && ./publish.sh
Expand Down

0 comments on commit ec98e86

Please sign in to comment.