Skip to content

Commit 381aa33

Browse files
authored
Update bytebuddy and ASM to support JDK 24 (#8720)
* Update bytebuddy to 1.15.11 * Update ASM to 9.8 * Increase agent jar size * Remove extra classes instead of increasing agent jar size
1 parent c827609 commit 381aa33

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ dependencies {
3030
implementation(gradleApi())
3131
implementation(localGroovy())
3232

33-
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.14.18")
33+
implementation("net.bytebuddy", "byte-buddy-gradle-plugin", "1.15.11")
3434

3535
implementation("org.eclipse.aether", "aether-connector-basic", "1.1.0")
3636
implementation("org.eclipse.aether", "aether-transport-http", "1.1.0")
3737
implementation("org.apache.maven", "maven-aether-provider", "3.3.9")
3838

3939
implementation("com.google.guava", "guava", "20.0")
40-
implementation("org.ow2.asm", "asm", "9.7.1")
41-
implementation("org.ow2.asm", "asm-tree", "9.7.1")
40+
implementation("org.ow2.asm", "asm", "9.8")
41+
implementation("org.ow2.asm", "asm-tree", "9.8")
4242

4343
testImplementation("org.spockframework", "spock-core", "2.2-groovy-3.0")
4444
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")

buildSrc/call-site-instrumentation-plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ dependencies {
3232
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
3333

3434
implementation("org.freemarker", "freemarker", "2.3.30")
35-
implementation("org.ow2.asm", "asm", "9.7.1")
36-
implementation("org.ow2.asm", "asm-tree", "9.7.1")
35+
implementation("org.ow2.asm", "asm", "9.8")
36+
implementation("org.ow2.asm", "asm-tree", "9.8")
3737
implementation("com.github.javaparser", "javaparser-symbol-solver-core", "3.24.4")
3838

39-
testImplementation("net.bytebuddy", "byte-buddy", "1.14.18")
39+
testImplementation("net.bytebuddy", "byte-buddy", "1.15.11")
4040
testImplementation("org.spockframework", "spock-core", "2.0-groovy-3.0")
4141
testImplementation("org.objenesis", "objenesis", "3.0.1")
4242
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")

buildSrc/src/test/groovy/CallSiteInstrumentationPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CallSiteInstrumentationPluginTest extends Specification {
2727
}
2828
2929
dependencies {
30-
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.14.18'
30+
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11'
3131
implementation group: 'com.google.auto.service', name: 'auto-service-annotations', version: '1.0-rc7'
3232
}
3333
'''

buildSrc/src/test/groovy/InstrumentPluginTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class InstrumentPluginTest extends Specification {
2323
}
2424
2525
dependencies {
26-
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.14.18' // just to build TestPlugin
26+
compileOnly group: 'net.bytebuddy', name: 'byte-buddy', version: '1.15.11' // just to build TestPlugin
2727
}
2828
2929
apply plugin: 'instrument'

dd-java-agent/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ ext.generalShadowJarConfig = {
4242
exclude '**/module-info.class'
4343
exclude '**/liblz4-java.so'
4444
exclude '**/liblz4-java.dylib'
45+
exclude '**/inst/META-INF/versions/**'
4546

4647
// Replaced by 'instrumenter.index', no need to include original service file
4748
exclude '**/META-INF/services/datadog.trace.agent.tooling.InstrumenterModule'

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spock = "2.3-groovy-3.0"
1010
groovy = "3.0.17"
1111
junit5 = "5.9.2"
1212
logback = "1.2.3"
13-
bytebuddy = "1.14.18"
13+
bytebuddy = "1.15.11"
1414
scala = "2.11.12" # Last version to support Java 7 (2.12+ require Java 8+)
1515
scala211 = "2.11.12"
1616
scala212 = "2.12.18"
@@ -30,7 +30,7 @@ testcontainers = '1.20.1'
3030
jmc = "8.1.0"
3131
autoservice = "1.0-rc7"
3232
ddprof = "1.24.0"
33-
asm = "9.7.1"
33+
asm = "9.8"
3434
cafe_crypto = "0.1.0"
3535
lz4 = "1.7.1"
3636

0 commit comments

Comments
 (0)