Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit 87138fe

Browse files
author
Bogdan Drutu
authored
Update deps and exclude opencensus artifacts from dependencies. (#1687)
* Update deps and exclude opencensus artifacts from dependencies. * Fix java style after google-java-format update. * Downgrade apt-plugin to 0.18 to support java7. * Downgrade typesafe to 1.2.1 to support java7.
1 parent 374a1ae commit 87138fe

File tree

7 files changed

+68
-38
lines changed

7 files changed

+68
-38
lines changed

build.gradle

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ buildscript {
1111
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.16'
1212
classpath "net.ltgt.gradle:gradle-apt-plugin:0.18"
1313
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
14-
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.7.1"
15-
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.7"
16-
classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.7.0"
14+
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
15+
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.8"
16+
classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.0"
1717
}
1818
}
1919

@@ -165,30 +165,30 @@ subprojects {
165165
}
166166

167167
ext {
168-
appengineVersion = '1.9.64'
168+
appengineVersion = '1.9.71'
169169
aspectjVersion = '1.8.11'
170170
autoValueVersion = '1.4'
171171
findBugsAnnotationsVersion = '3.0.1'
172172
findBugsJsr305Version = '3.0.2'
173173
errorProneVersion = '2.3.2'
174174
grpcVersion = '1.18.0'
175175
guavaVersion = '25.1-android'
176-
googleAuthVersion = '0.12.0'
177-
googleCloudBetaVersion = '0.77.0-beta'
178-
googleCloudGaVersion = '1.59.0'
176+
googleAuthVersion = '0.13.0'
177+
googleCloudBetaVersion = '0.79.0-beta'
178+
googleCloudGaVersion = '1.61.0'
179179
log4j2Version = '2.11.1'
180180
signalfxVersion = '0.0.48'
181181
springBootVersion = '1.5.15.RELEASE'
182182
springCloudVersion = '1.3.4.RELEASE'
183183
springVersion = '4.3.12.RELEASE'
184184
prometheusVersion = '0.6.0'
185-
protobufVersion = '3.5.1'
186-
zipkinReporterVersion = '2.3.2'
185+
protobufVersion = '3.6.1'
186+
zipkinReporterVersion = '2.7.14'
187187
jaegerReporterVersion = '0.27.0'
188188
opencensusProtoVersion = '0.1.0'
189189
gsonVersion = '2.8.5'
190190
dropwizardVersion = '3.1.2'
191-
dropwizard5Version = '5.0.0-rc2'
191+
dropwizard5Version = '5.0.0'
192192

193193
libraries = [
194194
appengine_api: "com.google.appengine:appengine-api-1.0-sdk:${appengineVersion}",
@@ -241,10 +241,7 @@ subprojects {
241241
compile {
242242
// Detect Maven Enforcer's dependencyConvergence failures. We only
243243
// care for artifacts used as libraries by others.
244-
if (!(project.name in ['benchmarks', 'opencensus-all',
245-
'opencensus-exporter-stats-stackdriver',
246-
'opencensus-exporter-trace-stackdriver',
247-
'opencensus-exporter-trace-jaeger'])) {
244+
if (!(project.name in ['benchmarks', 'opencensus-all'])) {
248245
resolutionStrategy.failOnVersionConflict()
249246
}
250247
}
@@ -329,7 +326,7 @@ subprojects {
329326
// Google formatter works only on java8.
330327
if (JavaVersion.current().isJava8Compatible()) {
331328
googleJavaFormat {
332-
toolVersion '1.6'
329+
toolVersion '1.7'
333330
}
334331

335332
afterEvaluate { // Allow subproject to add more source sets.

contrib/appengine_standard_util/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ description = 'OpenCensus AppEngine Standard Util'
33
apply plugin: 'java'
44
apply plugin: 'com.google.protobuf'
55

6-
def protocVersion = '3.5.1-1'
6+
def protocVersion = '3.6.1'
77

88
buildscript {
99
repositories {
1010
maven { url "https://plugins.gradle.org/m2/" }
1111
}
1212
dependencies {
13-
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.5"
13+
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.8"
1414
}
1515
}
1616

contrib/http_jaxrs/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ dependencies {
1414
compile project(':opencensus-contrib-http-util')
1515

1616
// Will be provided from elsewhere at runtime
17-
compileOnly('javax.ws.rs:javax.ws.rs-api:2.1')
18-
compileOnly('javax.annotation:javax.annotation-api:1.2')
17+
compileOnly('javax.ws.rs:javax.ws.rs-api:2.1.1')
18+
compileOnly('javax.annotation:javax.annotation-api:1.3.2')
1919

20-
testCompile('javax.ws.rs:javax.ws.rs-api:2.1')
21-
testCompile('javax.annotation:javax.annotation-api:1.2')
20+
testCompile('javax.ws.rs:javax.ws.rs-api:2.1.1')
21+
testCompile('javax.annotation:javax.annotation-api:1.3.2')
2222

2323
signature "org.codehaus.mojo.signature:java17:1.0@signature"
2424
}

contrib/log_correlation/stackdriver/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ description = 'OpenCensus Stackdriver Log Correlation'
33
apply plugin: 'java'
44

55
dependencies {
6-
compile project(':opencensus-api'),
7-
libraries.google_cloud_logging
6+
compile project(':opencensus-api')
7+
8+
compile (libraries.google_cloud_logging) {
9+
// We will always be more up to date.
10+
exclude group: 'io.opencensus', module: 'opencensus-api'
11+
}
812

913
testCompile libraries.guava
1014

exporters/metrics/ocagent/build.gradle

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ dependencies {
99
compileOnly libraries.auto_value
1010

1111
compile project(':opencensus-api'),
12-
project(':opencensus-contrib-monitored-resource-util'),
13-
libraries.grpc_core,
14-
libraries.grpc_netty,
15-
libraries.grpc_stub,
16-
libraries.opencensus_proto
12+
project(':opencensus-contrib-monitored-resource-util')
13+
14+
compile (libraries.grpc_core) {
15+
// We will always be more up to date.
16+
exclude group: 'io.opencensus', module: 'opencensus-api'
17+
}
18+
19+
compile (libraries.grpc_stub) {
20+
// We will always be more up to date.
21+
exclude group: 'io.opencensus', module: 'opencensus-api'
22+
}
23+
24+
compile (libraries.grpc_netty) {
25+
// We will always be more up to date.
26+
exclude group: 'io.opencensus', module: 'opencensus-api'
27+
}
28+
29+
compile (libraries.opencensus_proto) {
30+
// We will always be more up to date.
31+
exclude group: 'io.opencensus', module: 'opencensus-api'
32+
}
1733

1834
signature "org.codehaus.mojo.signature:java17:1.0@signature"
1935
}

exporters/trace/datadog/src/main/java/io/opencensus/exporter/trace/datadog/DatadogExporterHandler.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ private static String attributeValueToString(AttributeValue attributeValue) {
8585
private static Map<String, String> attributesToMeta(
8686
final Map<String, AttributeValue> attributes) {
8787
final HashMap<String, String> result = new HashMap<>();
88-
attributes
89-
.entrySet()
90-
.stream()
88+
attributes.entrySet().stream()
9189
.filter(entry -> entry.getValue() != null)
9290
.forEach(entry -> result.put(entry.getKey(), attributeValueToString(entry.getValue())));
9391
return result;
@@ -157,8 +155,7 @@ String convertToJson(Collection<SpanData> spanDataList) {
157155
}
158156

159157
final Collection<List<DatadogSpan>> traces =
160-
datadogSpans
161-
.stream()
158+
datadogSpans.stream()
162159
.collect(Collectors.groupingBy(DatadogSpan::getTraceId, Collectors.toList()))
163160
.values();
164161

exporters/trace/ocagent/build.gradle

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ dependencies {
99
compileOnly libraries.auto_value
1010

1111
compile project(':opencensus-api'),
12-
project(':opencensus-contrib-monitored-resource-util'),
13-
libraries.grpc_core,
14-
libraries.grpc_netty,
15-
libraries.grpc_stub,
16-
libraries.opencensus_proto
12+
project(':opencensus-contrib-monitored-resource-util')
13+
14+
compile (libraries.grpc_core) {
15+
// We will always be more up to date.
16+
exclude group: 'io.opencensus', module: 'opencensus-api'
17+
}
18+
19+
compile (libraries.grpc_stub) {
20+
// We will always be more up to date.
21+
exclude group: 'io.opencensus', module: 'opencensus-api'
22+
}
23+
24+
compile (libraries.grpc_netty) {
25+
// We will always be more up to date.
26+
exclude group: 'io.opencensus', module: 'opencensus-api'
27+
}
28+
29+
compile (libraries.opencensus_proto) {
30+
// We will always be more up to date.
31+
exclude group: 'io.opencensus', module: 'opencensus-api'
32+
}
1733

1834
signature "org.codehaus.mojo.signature:java17:1.0@signature"
1935
}

0 commit comments

Comments
 (0)