Skip to content

Commit 43cd165

Browse files
build: bump to JDK 17 and upgrade service-framework to 0.1.94 for Jetty 12 (CVE-2026-2332)
The current build pulls service-framework 0.1.89 (Jetty 11.0.24, vulnerable to CVE-2026-2332 / CVE-2025-5115). service-framework 0.1.94 migrates to Jetty 12.1.9 (ee10), which requires JDK 17+. - Bump source/target compatibility to Java 17 across all subprojects - Bump CI workflows to Java 17 - Bump platform-metrics + platform-service-framework 0.1.89 -> 0.1.94 - Bump grpc-client-utils 0.13.16 -> 0.13.23 (resolution conflict version) - Bump junit-pioneer 2.0.0 -> 2.3.0 and mockito-core 5.2.0 -> 5.15.2 for JDK 17+ reflection compat - Add --add-opens to test task for junit-pioneer @SetEnvironmentVariable on JDK 17+ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0aa8c44 commit 43cd165

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/setup-java@v4
2323
with:
2424
distribution: 'temurin'
25-
java-version: '11'
25+
java-version: '17'
2626

2727
- name: Build with Gradle
2828
uses: hypertrace/github-actions/gradle@main

.github/workflows/pr-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
21-
java-version: '11'
21+
java-version: '17'
2222

2323
- name: Unit test
2424
uses: hypertrace/github-actions/gradle@main
@@ -56,7 +56,7 @@ jobs:
5656
- uses: actions/setup-java@v4
5757
with:
5858
distribution: 'temurin'
59-
java-version: '11'
59+
java-version: '17'
6060
- name: Dependency Check
6161
uses: hypertrace/github-actions/dependency-check@main
6262
with:

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ subprojects {
2121

2222
pluginManager.withPlugin("java") {
2323
configure<JavaPluginExtension> {
24-
sourceCompatibility = JavaVersion.VERSION_11
25-
targetCompatibility = JavaVersion.VERSION_11
24+
sourceCompatibility = JavaVersion.VERSION_17
25+
targetCompatibility = JavaVersion.VERSION_17
2626

2727
apply(plugin = "org.hypertrace.code-style-plugin")
2828
}

kafka-streams-framework/build.gradle.kts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ plugins {
88

99
tasks.test {
1010
useJUnitPlatform()
11+
jvmArgs(
12+
"--add-opens=java.base/java.util=ALL-UNNAMED",
13+
"--add-opens=java.base/java.lang=ALL-UNNAMED",
14+
)
1115
}
1216

1317
dependencies {
@@ -18,20 +22,20 @@ dependencies {
1822
api(platform(project(":kafka-bom")))
1923
api("org.apache.kafka:kafka-streams")
2024
api("io.confluent:kafka-streams-avro-serde")
21-
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.13.16")
25+
api("org.hypertrace.core.grpcutils:grpc-client-utils:0.13.23")
2226

2327
implementation("org.apache.avro:avro")
2428
implementation("org.apache.kafka:kafka-clients")
25-
implementation("org.hypertrace.core.serviceframework:platform-metrics:0.1.89")
26-
implementation("org.hypertrace.core.serviceframework:platform-service-framework:0.1.89")
29+
implementation("org.hypertrace.core.serviceframework:platform-metrics:0.1.94")
30+
implementation("org.hypertrace.core.serviceframework:platform-service-framework:0.1.94")
2731
implementation("org.apache.commons:commons-lang3:3.18.0")
2832

2933
testCompileOnly("org.projectlombok:lombok:1.18.38")
3034
testAnnotationProcessor("org.projectlombok:lombok:1.18.38")
3135
testImplementation("org.apache.kafka:kafka-streams-test-utils")
3236
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
33-
testImplementation("org.junit-pioneer:junit-pioneer:2.0.0")
34-
testImplementation("org.mockito:mockito-core:5.2.0")
37+
testImplementation("org.junit-pioneer:junit-pioneer:2.3.0")
38+
testImplementation("org.mockito:mockito-core:5.15.2")
3539
testImplementation("org.hamcrest:hamcrest-core:2.2")
3640
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.20.0")
3741
}

0 commit comments

Comments
 (0)