Update byte buddy
MODIFY
conventions/build.gradle.kts
conventions/build.gradle.kts
@@ -45,7 +45,7 @@ dependencies {
implementation("org.gradle:test-retry-gradle-plugin:1.3.1")
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.5.4")
// When updating, also update dependencyManagement/build.gradle.kts
- implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.12.3")
+ implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.12.6")
implementation("gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.0")
implementation("me.champeau.jmh:jmh-gradle-plugin:0.6.6")
implementation("net.ltgt.gradle:gradle-errorprone-plugin:2.0.2")

MODIFY
dependencyManagement/build.gradle.kts
dependencyManagement/build.gradle.kts
@@ -61,7 +61,7 @@ val DEPENDENCY_SETS = listOf(
DependencySet(
"net.bytebuddy",
// When updating, also update conventions/build.gradle.kts
- "1.12.3",
+ "1.12.6",
listOf("byte-buddy", "byte-buddy-dep", "byte-buddy-agent", "byte-buddy-gradle-plugin")
),
DependencySet(

MODIFY
gradle-plugins/build.gradle.kts
gradle-plugins/build.gradle.kts
@@ -25,7 +25,7 @@ configurations.named("compileOnly") {
dependencies {
implementation("com.google.guava:guava:31.0.1-jre")
// we need to use byte buddy variant that does not shade asm
- implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.12.3") {
+ implementation("net.bytebuddy:byte-buddy-gradle-plugin:1.12.6") {
exclude(group = "net.bytebuddy", module = "byte-buddy")
}
implementation("net.bytebuddy:byte-buddy-dep:1.12.3")

MODIFY
gradle-plugins/src/main/kotlin/io.opentelemetry.instrumentation.muzzle-generation.gradle.kts
gradle-plugins/src/main/kotlin/io.opentelemetry.instrumentation.muzzle-generation.gradle.kts
@@ -65,7 +65,7 @@ tasks {
fun createLanguageTask(
compileTaskProvider: TaskProvider<*>, name: String): TaskProvider<*> {
- return tasks.register<ByteBuddyTask>(name) {
+ return tasks.register<ByteBuddySimpleTask>(name) {
setGroup("Byte Buddy")
outputs.cacheIf { true }
classFileVersion = ClassFileVersion.JAVA_V8
@@ -93,12 +93,3 @@ fun createTransformation(classPath: FileCollection, pluginClassName: String): Tr
plugin = ClasspathByteBuddyPlugin::class.java
}
}
-
-//TODO remove when https://github.com/raphw/byte-buddy/issues/1169 is fixed
-open class ByteBuddyTask : ByteBuddySimpleTask() {
- @InputDirectory
- @PathSensitive(PathSensitivity.RELATIVE)
- override fun getSource(): File? {
- return super.getSource()
- }
-}

Update byte buddy (#5037)