mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 11:07:53 +01:00
JDK 21 (#2058)
This commit is contained in:
parent
f09d3db999
commit
9f72bf4c44
4
.github/old-workflows/check-pr-style.yml
vendored
4
.github/old-workflows/check-pr-style.yml
vendored
@ -11,10 +11,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
- name: Run java checkstyle
|
||||
uses: nikitasavinov/checkstyle-action@0.3.1
|
||||
with:
|
||||
|
4
.github/workflows/javadoc.yml
vendored
4
.github/workflows/javadoc.yml
vendored
@ -11,10 +11,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Build javadoc
|
||||
|
8
.github/workflows/pr.yml
vendored
8
.github/workflows/pr.yml
vendored
@ -9,11 +9,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Setup gradle cache
|
||||
@ -40,10 +40,10 @@ jobs:
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
|
4
.github/workflows/snapshot-deploy.yaml
vendored
4
.github/workflows/snapshot-deploy.yaml
vendored
@ -14,10 +14,10 @@ jobs:
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
|
@ -36,8 +36,8 @@ allprojects {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
tasks.withType<Zip> {
|
||||
@ -101,9 +101,9 @@ tasks {
|
||||
|
||||
// Custom options
|
||||
addBooleanOption("html5", true)
|
||||
addStringOption("-release", "17")
|
||||
addStringOption("-release", "21")
|
||||
// Links to external javadocs
|
||||
links("https://docs.oracle.com/en/java/javase/17/docs/api/")
|
||||
links("https://docs.oracle.com/en/java/javase/21/docs/api/")
|
||||
links("https://jd.adventure.kyori.net/api/${libs.versions.adventure.get()}/")
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
jdk:
|
||||
- openjdk17
|
||||
- openjdk21
|
Loading…
Reference in New Issue
Block a user