File tree Expand file tree Collapse file tree 6 files changed +17
-10
lines changed
sdk-extensions/jaeger-remote-sampler Expand file tree Collapse file tree 6 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,17 @@ publishing {
32
32
name.set(" OpenTelemetry Java" )
33
33
url.set(" https://github.com/open-telemetry/opentelemetry-java" )
34
34
35
+ withXml {
36
+ // Since 5.0 okhttp uses gradle metadata to choose either okhttp-jvm or okhttp-android.
37
+ // This does not work for maven builds that don't understand gradle metadata. They end up
38
+ // using the okhttp artifact that is an empty jar. Here we replace usages of okhttp with
39
+ // okhttp-jvm so that maven could get the actual okhttp dependency instead of the empty jar.
40
+ var result = asString()
41
+ var modified = result.toString().replace(" >okhttp<" , " >okhttp-jvm<" )
42
+ result.clear()
43
+ result.append(modified)
44
+ }
45
+
35
46
licenses {
36
47
license {
37
48
name.set(" The Apache License, Version 2.0" )
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ val DEPENDENCIES = listOf(
73
73
" com.google.code.findbugs:jsr305:3.0.2" ,
74
74
" com.google.guava:guava-beta-checker:1.0" ,
75
75
" com.sun.net.httpserver:http:20070405" ,
76
- " com.squareup.okhttp3:okhttp-jvm :$okhttpVersion " ,
76
+ " com.squareup.okhttp3:okhttp:$okhttpVersion " ,
77
77
" com.tngtech.archunit:archunit-junit5:1.4.1" ,
78
78
" com.uber.nullaway:nullaway:0.12.10" ,
79
79
" edu.berkeley.cs.jqf:jqf-fuzz:1.7" , // jqf-fuzz version 1.8+ requires Java 11+
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ dependencies {
34
34
jmhImplementation(" com.linecorp.armeria:armeria" )
35
35
jmhImplementation(" com.linecorp.armeria:armeria-grpc" )
36
36
jmhImplementation(" io.opentelemetry.proto:opentelemetry-proto" )
37
- jmhRuntimeOnly(" com.squareup.okhttp3:okhttp-jvm " )
37
+ jmhRuntimeOnly(" com.squareup.okhttp3:okhttp" )
38
38
jmhRuntimeOnly(" io.grpc:grpc-netty" )
39
39
}
40
40
@@ -64,12 +64,8 @@ testing {
64
64
}
65
65
}
66
66
}
67
- if (it.equals(" LATEST" )) {
68
- implementation(" com.squareup.okhttp3:okhttp-jvm" )
69
- } else {
70
- implementation(" com.squareup.okhttp3:okhttp" )
71
- }
72
67
68
+ implementation(" com.squareup.okhttp3:okhttp" )
73
69
implementation(" io.grpc:grpc-stub" )
74
70
}
75
71
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ dependencies {
27
27
28
28
api(" io.opentelemetry.proto:opentelemetry-proto" )
29
29
api(" org.junit.jupiter:junit-jupiter-api" )
30
- implementation(" com.squareup.okhttp3:okhttp-jvm " )
30
+ implementation(" com.squareup.okhttp3:okhttp" )
31
31
implementation(" org.junit.jupiter:junit-jupiter-params" )
32
32
33
33
implementation(" com.linecorp.armeria:armeria-grpc-protocol" )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dependencies {
12
12
implementation(project(" :exporters:common" ))
13
13
implementation(project(" :sdk:common" ))
14
14
15
- implementation(" com.squareup.okhttp3:okhttp-jvm " )
15
+ implementation(" com.squareup.okhttp3:okhttp" )
16
16
17
17
compileOnly(" io.grpc:grpc-stub" )
18
18
compileOnly(" com.fasterxml.jackson.core:jackson-core" )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ dependencies {
20
20
implementation(project(" :exporters:common" ))
21
21
implementation(project(" :exporters:sender:okhttp" ))
22
22
23
- implementation(" com.squareup.okhttp3:okhttp-jvm " )
23
+ implementation(" com.squareup.okhttp3:okhttp" )
24
24
25
25
compileOnly(" io.grpc:grpc-api" )
26
26
compileOnly(" io.grpc:grpc-protobuf" )
You can’t perform that action at this time.
0 commit comments