Skip to content

Commit

Permalink
Fix shaded variant classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Jan 3, 2025
1 parent bfc722a commit bd6e7b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gcp-auth-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ dependencies {
implementation("io.opentelemetry:opentelemetry-exporter-otlp")
implementation("io.opentelemetry:opentelemetry-sdk-extension-autoconfigure")
// use the shaded variant of the dependency
implementation("io.opentelemetry.contrib:opentelemetry-gcp-auth-extension:<VERSION>:shaded")
implementation("io.opentelemetry.contrib:opentelemetry-gcp-auth-extension")
// other dependencies
...
Expand Down
4 changes: 2 additions & 2 deletions gcp-auth-extension/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tasks {
}

shadowJar {
archiveFileName.set("gcp-auth-extension.jar")
archiveClassifier.set("")
}

jar {
Expand All @@ -76,7 +76,7 @@ tasks {

val builtLibsDir = layout.buildDirectory.dir("libs").get().asFile.absolutePath
val javaAgentJarPath = "$builtLibsDir/otel-agent.jar"
val authExtensionJarPath = "$builtLibsDir/gcp-auth-extension.jar"
val authExtensionJarPath = "${tasks.shadowJar.get().archiveFile.get()}"

tasks.register<Copy>("copyAgent") {
into(layout.buildDirectory.dir("libs"))
Expand Down

0 comments on commit bd6e7b0

Please sign in to comment.