Skip to content

Commit 5524545

Browse files
committed
Use auto-service-annotations for compileOnly instead of full auto-service
1 parent 881f642 commit 5524545

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

conventions/src/main/kotlin/otel.javaagent-testing.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ evaluationDependsOn(":testing:agent-for-testing")
88

99
dependencies {
1010
annotationProcessor("com.google.auto.service:auto-service")
11-
compileOnly("com.google.auto.service:auto-service")
11+
compileOnly("com.google.auto.service:auto-service-annotations")
1212

1313
testImplementation("org.testcontainers:testcontainers")
1414
}

smoke-tests/extensions/extension/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ dependencies {
99
compileOnly("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-incubator")
1010
compileOnly("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api")
1111

12-
compileOnly("com.google.auto.service:auto-service")
1312
compileOnly("com.google.auto.service:auto-service-annotations")
1413

1514
annotationProcessor("com.google.auto.service:auto-service")

testing-common/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dependencies {
5050
api(project(":instrumentation-api-incubator"))
5151

5252
annotationProcessor("com.google.auto.service:auto-service")
53-
compileOnly("com.google.auto.service:auto-service")
53+
compileOnly("com.google.auto.service:auto-service-annotations")
5454

5555
testImplementation(project(":javaagent-tooling"))
5656
testImplementation(project(":javaagent-bootstrap"))
@@ -59,7 +59,7 @@ dependencies {
5959

6060
// We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
6161
testAnnotationProcessor("com.google.auto.service:auto-service")
62-
testCompileOnly("com.google.auto.service:auto-service")
62+
testCompileOnly("com.google.auto.service:auto-service-annotations")
6363
}
6464

6565
tasks {

testing/agent-exporter/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tasks.jar {
99

1010
dependencies {
1111
annotationProcessor("com.google.auto.service:auto-service")
12-
compileOnly("com.google.auto.service:auto-service")
12+
compileOnly("com.google.auto.service:auto-service-annotations")
1313

1414
compileOnly(project(":instrumentation-api"))
1515
compileOnly(project(":instrumentation-api-incubator"))

0 commit comments

Comments
 (0)