From af7254271da180e67c79e378afce2cacdf586c53 Mon Sep 17 00:00:00 2001 From: floriankirmaier Date: Sun, 14 Jun 2026 17:40:17 +0200 Subject: [PATCH] CI: build on JDK 25; update Gradle to 9.4.1 Gradle 9 is required for JDK 25 and now needs the JUnit Platform launcher declared explicitly. The CI matrix moves to 17/21/25 (Gradle 9 requires JDK 17+ to run; the library still targets Java 11). Adds a .gitignore (the repo had none). Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/main.yml | 2 +- .gitignore | 6 ++++++ build.gradle | 1 + gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 950490b..3ffff29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - jdk: [11, 17, 21] + jdk: [17, 21, 25] runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..028ae5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.gradle/ +build/ +.idea/ +.tmp/ +*.hprof +heapdump_jmemb_*.hprof diff --git a/build.gradle b/build.gradle index 659822d..78d9a96 100644 --- a/build.gradle +++ b/build.gradle @@ -42,6 +42,7 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:$JUNIT_VERSION" testImplementation "org.junit.jupiter:junit-jupiter-params:$JUNIT_VERSION" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$JUNIT_VERSION" + testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.11.3" // required explicitly since Gradle 9 testRuntimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION" } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a441313..c61a118 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME