mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2025-01-02 18:17:36 +01:00
Move GH actions to J21
Co-authored-by: Kichura <68134602+kichura@users.noreply.github.com>
This commit is contained in:
parent
057bdc925f
commit
16dd9002b3
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -9,11 +9,11 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
- 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
|
||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -10,11 +10,11 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
- 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:
|
||||
|
@ -43,7 +43,7 @@ allprojects {
|
||||
java {
|
||||
toolchain {
|
||||
// lwjgl2 works with Adoptium
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
vendor = JvmVendorSpec.ADOPTIUM
|
||||
}
|
||||
withSourcesJar()
|
||||
@ -166,7 +166,7 @@ processResources {
|
||||
List<String> mcReleases = Arrays.stream(rootProject.publish_mc_versions.toString().split(","))
|
||||
.map({ it -> it.trim() })
|
||||
.collect(Collectors.toList())
|
||||
List<String> javaVersions = IntStream.rangeClosed(8, 17)
|
||||
List<String> 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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user