Skip to content

Commit e3ac19f

Browse files
authored
Update publishing for GCP Auth Extension (open-telemetry#1688)
1 parent d2a97f4 commit e3ac19f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

gcp-auth-extension/build.gradle.kts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,19 @@ tasks {
6060
}
6161

6262
shadowJar {
63-
archiveClassifier.set("")
63+
archiveClassifier.set("shadow")
6464
}
6565

6666
jar {
67-
// Disable standard jar
68-
enabled = false
67+
/**
68+
* We need to publish both - shaded and unshaded variants of the dependency
69+
* Shaded dependency is required for use with the Java agent.
70+
* Unshaded dependency can be used with OTel Autoconfigure module.
71+
*
72+
* Not overriding the classifier to empty results in an implicit classifier 'plain' being
73+
* used with the standard JAR.
74+
*/
75+
archiveClassifier.set("")
6976
}
7077

7178
assemble {

0 commit comments

Comments
 (0)