diff --git a/disk-buffering/build.gradle.kts b/disk-buffering/build.gradle.kts index 74f51a72c..bd8716671 100644 --- a/disk-buffering/build.gradle.kts +++ b/disk-buffering/build.gradle.kts @@ -1,8 +1,10 @@ +import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import ru.vyarus.gradle.plugin.animalsniffer.AnimalSniffer plugins { id("otel.java-conventions") id("otel.publish-conventions") + id("com.github.johnrengelman.shadow") id("me.champeau.jmh") version "0.7.2" id("ru.vyarus.animalsniffer") version "1.7.1" id("com.squareup.wire") version "4.9.3" @@ -61,6 +63,13 @@ wire { ) } +tasks.named("shadowJar") { + archiveClassifier.set("") + configurations = emptyList() // To avoid embedding any dependencies as we only need to rename some local packages. + relocate("io.opentelemetry.proto", "io.opentelemetry.diskbuffering.proto") + mustRunAfter("jar") +} + // The javadoc from wire's generated classes has errors that make the task that generates the "javadoc" artifact to fail. This // makes the javadoc task to ignore those generated classes. tasks.withType(Javadoc::class.java) {