mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
ci: downgrade Java version from 23 to 21 in build configuration
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -69,7 +69,7 @@ jobs:
|
|||||||
- name: Build packets
|
- name: Build packets
|
||||||
run: ./gradlew :libraries:packets:shadowJar
|
run: ./gradlew :libraries:packets:shadowJar
|
||||||
|
|
||||||
tests:
|
unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -88,7 +88,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '23'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Modify gradlew permissions
|
- name: Modify gradlew permissions
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ group = "de.oliver"
|
|||||||
description = "Tool to deploy Minecraft plugins"
|
description = "Tool to deploy Minecraft plugins"
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion.set(JavaLanguageVersion.of(23))
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@@ -42,7 +42,7 @@ tasks {
|
|||||||
|
|
||||||
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
||||||
// See https://openjdk.java.net/jeps/247 for more information.
|
// See https://openjdk.java.net/jeps/247 for more information.
|
||||||
options.release.set(23)
|
options.release.set(21)
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
|||||||
Reference in New Issue
Block a user