Skip to content

Commit 4cb9308

Browse files
committed
update to jdk 24
Signed-off-by: neo <[email protected]>
1 parent f17eea5 commit 4cb9308

File tree

9 files changed

+18
-25
lines changed

9 files changed

+18
-25
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
## Change log
22

3-
### 9.1.9 (4/24/2025 - )
3+
### 9.2.0 (4/24/2025 - )
44

5+
* java: update to 24
6+
> refer to https://openjdk.org/jeps/491
57
* search: remove opentelemetry dependency from es lib
68

79
### 9.1.8 (3/7/2025 - 4/24/2025)

TODO.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
* db: update "on duplicated key" values() syntax,
1313
> The use of VALUES() to refer to the new row and columns is deprecated beginning with MySQL 8.0.20, and is subject to removal in a future version of MySQL.
1414
15-
* support sse with POST?
16-
17-
* track if undertow improved leak with virtual threads
18-
https://github.com/undertow-io/undertow/blob/main/core/src/main/java/io/undertow/server/DefaultByteBufferPool.java
19-
20-
* track okHTTP fixed pin issue with virtual threads (looks like needs to wait until 5.0.0 released)
21-
https://github.com/square/okhttp/issues/8284
2215
* switch httpclient to jdk built in after jdk 24?, then send goaway frame in ShutdownHandler
2316
https://bugs.openjdk.org/browse/JDK-8335181
2417

@@ -27,4 +20,4 @@
2720
* redis using ping/pong to validate connection? for zero downtime upgrading e.g. with gcloud memory store
2821
* migrate to dragonflydb and support RESP3 (cluster / MOVED handling) ?
2922
* migrate to opensearch ?
30-
* log exporter, save in parquet format, or reimplement in rust?
23+
* log exporter, reimplement in rust?

build.gradle.kts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ apply(plugin = "project")
77

88
subprojects {
99
group = "core.framework"
10-
version = "9.1.9"
10+
version = "9.2.0"
1111
}
1212

1313
val elasticVersion = "8.15.0"
1414
val jacksonVersion = "2.17.2"
15-
val junitVersion = "5.12.1"
16-
val mockitoVersion = "5.16.1"
15+
val junitVersion = "5.12.2"
16+
val mockitoVersion = "5.17.0"
1717
val assertjVersion = "3.27.3"
1818

1919
project("core-ng-api") {
@@ -28,9 +28,7 @@ project("core-ng") {
2828
implementation("org.javassist:javassist:3.30.2-GA")
2929
implementation("com.fasterxml.jackson.module:jackson-module-afterburner:${jacksonVersion}")
3030
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}")
31-
implementation("com.squareup.okhttp3:okhttp:4.12.0@jar")
32-
implementation("com.squareup.okio:okio:3.2.0") // okio 3.3.0 has synchronization issue with virtual thread
33-
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.20")
31+
implementation("com.squareup.okhttp3:okhttp:4.12.0")
3432
implementation("io.undertow:undertow-core:2.3.18.Final")
3533
implementation("org.apache.kafka:kafka-clients:4.0.0") {
3634
exclude("org.xerial.snappy")

buildSrc/src/main/kotlin/check.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subprojects {
1919

2020
checkstyle {
2121
dependencies {
22-
checkstyle("com.puppycrawl.tools:checkstyle:10.21.1")
22+
checkstyle("com.puppycrawl.tools:checkstyle:10.23.0")
2323
checkstyle("com.github.sevntu-checkstyle:sevntu-checks:1.44.1")
2424
}
2525

@@ -47,7 +47,7 @@ subprojects {
4747
pmd {
4848
ruleSets = listOf()
4949
ruleSetFiles = rootProject.files("buildSrc/src/main/check/pmd.xml")
50-
toolVersion = "7.9.0"
50+
toolVersion = "7.13.0"
5151
isConsoleOutput = true
5252

5353
tasks.withType<Pmd> {
@@ -60,14 +60,14 @@ subprojects {
6060
spotbugsPlugins("com.mebigfatguy.sb-contrib:sb-contrib:7.6.9")
6161
}
6262

63-
toolVersion = "4.9.0"
63+
toolVersion = "4.9.3"
6464
reportLevel = Confidence.LOW
6565
extraArgs = listOf("-longBugCodes")
6666
includeFilter = rootProject.file("buildSrc/src/main/check/spotbugs.xml")
6767
}
6868

6969
jacoco {
70-
toolVersion = "0.8.12"
70+
toolVersion = "0.8.13"
7171

7272
tasks.named<JacocoReport>("testCodeCoverageReport") {
7373
reports {

buildSrc/src/main/kotlin/project.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ subprojects {
1414

1515
java {
1616
toolchain {
17-
languageVersion = JavaLanguageVersion.of(21)
17+
languageVersion = JavaLanguageVersion.of(24)
1818
}
1919
}
2020

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)