Fix build due to snapshot issue
MODIFY
gradle/dependencies.gradle
gradle/dependencies.gradle
@@ -10,9 +10,10 @@ ext {
versions = [
// Check https://oss.jfrog.org/libs-snapshot/io/opentelemetry/ for latest snapshot version.
opentelemetry : '0.8.0-20200826.153459-48',
- // Snapshot versions are often split into two suffixes based on jfrog's whims, best to keep
- // these separate until GA
+ // Snapshot versions are often split across versions (based on jfrog's whim and relative age of
+ // each module), best to keep these separate until GA
opentelemetryOther : '0.8.0-20200826.153459-49',
+ opentelemetryAnother: '0.8.0-20200826.153459-15',
slf4j : "1.7.30",
guava : "20.0", // Last version to support Java 7

MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -110,6 +110,16 @@ dependencies {
testImplementation deps.testLogging
testImplementation group: 'info.solidsoft.spock', name: 'spock-global-unroll', version: '0.5.1'
testImplementation group: 'com.github.stefanbirkner', name: 'system-rules', version: '1.19.0'
+
+ constraints {
+ // need to pin the opentelemetry-sdk transitive dependency versions explicitly, otherwise the
+ // latest snapshots are used, because the opentelemetry-sdk snapshot pom references these
+ // transitive dependencies using the generic SNAPSHOT instead of a specific snapshot
+ implementation group: 'io.opentelemetry', name: 'opentelemetry-sdk-common', version: versions.opentelemetryAnother
+ implementation group: 'io.opentelemetry', name: 'opentelemetry-sdk-correlation-context', version: versions.opentelemetryAnother
+ implementation group: 'io.opentelemetry', name: 'opentelemetry-sdk-metrics', version: versions.opentelemetryAnother
+ implementation group: 'io.opentelemetry', name: 'opentelemetry-sdk-tracing', version: versions.opentelemetryAnother
+ }
}
jar {

Fix build due to snapshot issue (#1127)