Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 21 #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/java-all-versions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Java 8, 11, 17, 21 CI
name: Java 21 CI

on: [push,pull_request]

Expand All @@ -8,24 +8,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDKs 8, 11, 17, 21
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: |
8
11
17
21
java-version: 21
- name: Build with Gradle
run: ./gradlew assemble
- name: Style check
run: ./gradlew checkstyleMain
- name: Test with Java 8
run: ./gradlew test -PtestOnJava=8 --stacktrace
- name: Test with Java 11
run: ./gradlew test -PtestOnJava=11 --stacktrace
- name: Test with Java 17
run: ./gradlew test -PtestOnJava=17 --stacktrace
- name: Test with Java 21
run: ./gradlew test -PtestOnJava=21 --stacktrace
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Java 11 CI macOS (Apple)
name: Java 21 CI macOS (Apple)

on:
push:
Expand All @@ -10,11 +10,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
java-version: 21
- name: Build with Gradle
run: ./gradlew assemble
- name: Test with Gradle
Expand Down
4 changes: 2 additions & 2 deletions RoaringBitmap/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tasks.named<Jar>("sourcesJar") {
// Unset Java 8 release applied from root project to allow modularity plugin to
// control the class file versions.
tasks.named<JavaCompile>("compileJava") {
options.release.set(null as Int?)
options.release.set(21)
}

configure<org.javamodularity.moduleplugin.extensions.ModularityExtension> {
Expand All @@ -37,7 +37,7 @@ configure<org.javamodularity.moduleplugin.extensions.ModularityExtension> {
// Unset Java 8 release applied from root project to allow modularity plugin to
// control the class file versions.
tasks.named<JavaCompile>("compileModuleInfoJava") {
options.release.set(null as Int?)
options.release.set(21)
}

tasks.test {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ subprojects {
options.isDeprecation = true
options.isWarnings = true
options.compilerArgs = listOf("-Xlint:unchecked")
options.release.set(8)
options.release.set(21)
}

withType<Javadoc> {
Expand Down
Loading