From e7ff196487e7585c7746dab4fd6bd3de8193023f Mon Sep 17 00:00:00 2001 From: Kichura <68134602+Kichura@users.noreply.github.com> Date: Sat, 6 Apr 2024 23:15:25 +0200 Subject: [PATCH] Prepare actions for JDK 21. --- .github/workflows/build.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- build.gradle | 2 +- jitpack.yml | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65eaab27..9af9ca85 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,11 +9,11 @@ jobs: uses: actions/checkout@v4 - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v2 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: 21 check-latest: true - name: Cache Dependencies uses: actions/cache@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f348a45a..30231672 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,11 +10,11 @@ jobs: uses: actions/checkout@v4 - name: Validate Gradle Wrapper uses: gradle/wrapper-validation-action@v2 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 17 + java-version: 21 check-latest: true - name: Build and Publish env: diff --git a/build.gradle b/build.gradle index f19ae611..2b041ae0 100644 --- a/build.gradle +++ b/build.gradle @@ -166,7 +166,7 @@ processResources { List mcReleases = Arrays.stream(rootProject.publish_mc_versions.toString().split(",")) .map({ it -> it.trim() }) .collect(Collectors.toList()) -List javaVersions = IntStream.rangeClosed(8, 17) +List javaVersions = IntStream.rangeClosed(8, 21) .mapToObj { n -> (String) "Java $n" } .collect(Collectors.toList()) String changelogMsg = "A changelog can be found at https://github.com/ViaVersion/ViaFabric/commits" diff --git a/jitpack.yml b/jitpack.yml index 84f0916d..2b5b19bd 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,7 +1,7 @@ -# Deploys the latest stable JDK 17 available and sets it to default without having to manually specify it here, +# Deploys the latest stable JDK 21 available and sets it to default without having to manually specify it here, # Which includes using temurin as the distribution. before_install: - curl -s "https://get.sdkman.io" | bash - source ~/.sdkman/bin/sdkman-init.sh - - sdk install java 17.0.10-tem - - sdk use java 17.0.10-tem + - sdk install java 21.0.2-tem + - sdk use java 21.0.2-tem