File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
1
2
import ru.vyarus.gradle.plugin.animalsniffer.AnimalSniffer
2
3
3
4
plugins {
4
5
id(" otel.java-conventions" )
5
6
id(" otel.publish-conventions" )
7
+ id(" com.github.johnrengelman.shadow" )
6
8
id(" me.champeau.jmh" ) version " 0.7.2"
7
9
id(" ru.vyarus.animalsniffer" ) version " 1.7.1"
8
10
id(" com.squareup.wire" ) version " 4.9.3"
@@ -61,6 +63,13 @@ wire {
61
63
)
62
64
}
63
65
66
+ tasks.named<ShadowJar >(" shadowJar" ) {
67
+ archiveClassifier.set(" " )
68
+ configurations = emptyList() // To avoid embedding any dependencies as we only need to rename some local packages.
69
+ relocate(" io.opentelemetry.proto" , " io.opentelemetry.diskbuffering.proto" )
70
+ mustRunAfter(" jar" )
71
+ }
72
+
64
73
// The javadoc from wire's generated classes has errors that make the task that generates the "javadoc" artifact to fail. This
65
74
// makes the javadoc task to ignore those generated classes.
66
75
tasks.withType(Javadoc ::class .java) {
You can’t perform that action at this time.
0 commit comments