Skip to content

Commit

Permalink
chore(ci): use java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Oct 13, 2024
1 parent 3aaa8af commit df412a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/blob-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v4

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build shadowJar
run: ./gradlew clean shadowJar

- name: Rename jar file
run: mv build/libs/SlimefunTranslation-*.jar build/libs/SlimefunTranslation.jar
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v4

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build shadowJar
run: ./gradlew clean shadowJar

- name: Get build artifact ready
run: mkdir staging && cp build/libs/*.jar staging
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
id("java")
id("maven-publish")
id("com.gradleup.shadow") version "8.3.2"
id("com.gradleup.shadow") version "8.3.3"
id("io.freefair.lombok") version "8.10.2"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("xyz.jpenilla.run-paper") version "2.3.1"
Expand Down

0 comments on commit df412a0

Please sign in to comment.