Lines Matching +full:- +full:- +full:google +full:- +full:java +full:- +full:format +full:- +full:jar
10 classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.6'
11 classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.16'
12 classpath "net.ltgt.gradle:gradle-apt-plugin:0.18"
13 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.…
15 classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.7"
16 classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.7.0"
21 // Also see https://github.com/ben-manes/gradle-versions-plugin.
22 apply plugin: 'com.github.ben-manes.versions'
33 apply plugin: 'java'
47 apply plugin: 'com.github.sherter.google-java-format'
51 version = "0.17.0-SNAPSHOT" // CURRENT_OPENCENSUS_VERSION
73 // We suppress the "try" warning because it disallows managing an auto-closeable with
74 // try-with-resources without referencing the auto-closeable within the try block.
76 // https://groups.google.com/forum/#!topic/bazel-discuss/_R3A9TJSoPM
77 it.options.compilerArgs += ["-Xlint:all", "-Xlint:-try", "-Xlint:-processing"]
80 …it.options.compilerArgs += ["-XepAllDisabledChecksAsWarnings", "-XepDisableWarningsInGeneratedCode…
83 // API methods (https://github.com/google/error-prone/issues/982).
84 it.options.compilerArgs += ["-Xep:MutableMethodReturnType:OFF"]
87 it.options.compilerArgs += ["-Xep:ReturnMissingNullable:OFF"]
90 it.options.compilerArgs += ["-Xep:Var:OFF"]
95 '-processor',
96 …'com.google.auto.value.processor.AutoValueProcessor,org.checkerframework.checker.nullness.Nullness…
97 "-Astubs=$rootDir/checker-framework/stubs"
100 it.options.encoding = "UTF-8"
101 // Protobuf-generated code produces some warnings.
102 // https://github.com/google/protobuf/issues/2718
103 it.options.compilerArgs += ["-Xlint:-cast"]
105 // TODO(sebright): Enable -Werror for Java 9 once we upgrade AutoValue (issue #1017).
106 it.options.compilerArgs += ["-Werror"]
109 … // Suppress all deprecation warnings with Java 7, since there are some bugs in its handling of
111 …s://stackoverflow.com/questions/26921774/how-to-avoid-deprecation-warnings-when-suppresswarningsde…
112 it.options.compilerArgs += ["-Xlint:-deprecation"]
114 // TODO(bdrutu): Enable for Java 7 when fix the issue with configuring bootstrap class.
115 // [options] bootstrap class path not set in conjunction with -source 1.6
116 it.options.compilerArgs += ["-Xlint:-options"]
119 … // TODO(sebright): Currently, building with Java 9 produces the following "options" warnings:
121 …// :opencensus-api:compileJavawarning: [options] bootstrap class path not set in conjunction with …
124 it.options.compilerArgs += ["-Xlint:-options"]
130 options.compilerArgs += ["-Xlint:-serial"]
132 options.compilerArgs += ["-Xlint:-deprecation"]
135 jar.manifest {
136 attributes('Implementation-Title': name,
137 'Implementation-Version': version,
138 'Built-By': System.getProperty('user.name'),
139 'Built-JDK': System.getProperty('java.version'),
140 'Source-Compatibility': sourceCompatibility,
141 'Target-Compatibility': targetCompatibility)
145 encoding = 'UTF-8'
159 googleCloudBetaVersion = '0.64.0-beta'
173 appengine_api: "com.google.appengine:appengine-api-1.0-sdk:${appengineVersion}",
175 auto_value: "com.google.auto.value:auto-value:${autoValueVersion}",
176 auto_service: 'com.google.auto.service:auto-service:1.0-rc3',
177 byte_buddy: 'net.bytebuddy:byte-buddy:1.7.11',
180 errorprone: "com.google.errorprone:error_prone_annotations:${errorProneVersion}",
181 … findbugs_annotations: "com.google.code.findbugs:annotations:${findBugsAnnotationsVersion}",
182 google_auth: "com.google.auth:google-auth-library-credentials:${googleAuthVersion}",
183 … google_cloud_logging: "com.google.cloud:google-cloud-logging:${googleCloudGaVersion}",
184 google_cloud_trace: "com.google.cloud:google-cloud-trace:${googleCloudBetaVersion}",
185 zipkin_reporter: "io.zipkin.reporter2:zipkin-reporter:${zipkinReporterVersion}",
186 … zipkin_urlconnection: "io.zipkin.reporter2:zipkin-sender-urlconnection:${zipkinReporterVersion}",
187 jaeger_reporter: "com.uber.jaeger:jaeger-core:${jaegerReporterVersion}",
188 … google_cloud_monitoring: "com.google.cloud:google-cloud-monitoring:${googleCloudGaVersion}",
189 grpc_context: "io.grpc:grpc-context:${grpcVersion}",
190 grpc_core: "io.grpc:grpc-core:${grpcVersion}",
191 grpc_netty: "io.grpc:grpc-netty:${grpcVersion}",
192 grpc_stub: "io.grpc:grpc-stub:${grpcVersion}",
193 guava: "com.google.guava:guava:${guavaVersion}",
194 jsr305: "com.google.code.findbugs:jsr305:${findBugsJsr305Version}",
195 signalfx_java: "com.signalfx.public:signalfx-java:${signalfxVersion}",
196 spring_aspects: "org.springframework:spring-aspects:${springVersion}",
197 … spring_boot_starter_web: "org.springframework.boot:spring-boot-starter-web:${springBootVersion}",
198 … spring_cloud_build: "org.springframework.cloud:spring-cloud-build:${springCloudVersion}",
199 …spring_cloud_starter_sleuth: "org.springframework.cloud:spring-cloud-starter-sleuth:${springCloudV…
200 spring_context: "org.springframework:spring-context:${springVersion}",
201 … spring_context_support: "org.springframework:spring-context-support:${springVersion}",
203 protobuf: "com.google.protobuf:protobuf-java:${protobufVersion}",
204 opencensus_proto: "io.opencensus:opencensus-proto:${opencensusProtoVersion}",
207 guava_testlib: "com.google.guava:guava-testlib:${guavaVersion}",
209 mockito: 'org.mockito:mockito-core:1.9.5',
210 spring_test: "org.springframework:spring-test:${springVersion}",
211 truth: 'com.google.truth:truth:0.30',
212 dropwizard: "io.dropwizard.metrics:metrics-core:${dropwizardVersion}",
220 if (!(project.name in ['benchmarks', 'opencensus-all',
221 'opencensus-exporter-stats-stackdriver',
222 'opencensus-exporter-trace-stackdriver',
223 'opencensus-exporter-trace-jaeger'])) {
236 … // https://github.com/census-instrumentation/opencensus-java/pull/1112#issuecomment-381366366.
243 compile "org.checkerframework:checker-qual:${checkerFrameworkVersion}"
258 errorprone "com.google.errorprone:error_prone_core:${errorProneVersion}"
268 excludeFilter = file("$rootDir/findbugs-exclude.xml")
305 // Google formatter works only on java8.
314 include '**/*.java'
319 include '**/*.java'
329 task javadocJar(type: Jar) {
334 task sourcesJar(type: Jar) {
351 // ./gradlew -PjmhIncludeSingleClass=StatsTraceContextBenchmark clean :grpc-core:jmh
369 beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
383 packaging 'jar'
385 url 'https://github.com/census-instrumentation/opencensus-java'
388 … connection 'scm:svn:https://github.com/census-instrumentation/opencensus-java'
389 … developerConnection 'scm:git:git@github.com/census-instrumentation/opencensus-java'
390 url 'https://github.com/census-instrumentation/opencensus-java'
396 url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
404 email 'census-developers@googlegroups.com'
406 // https://issues.gradle.org/browse/GRADLE-2719
418 name in ['opencensus-api',
419 'opencensus-contrib-agent',
420 'opencensus-contrib-appengine-standard-util',
421 'opencensus-contrib-dropwizard',
422 'opencensus-contrib-exemplar-util',
423 'opencensus-contrib-grpc-metrics',
424 'opencensus-contrib-grpc-util',
425 'opencensus-contrib-http-util',
426 'opencensus-contrib-log-correlation-stackdriver',
427 'opencensus-contrib-monitored-resource-util',
428 'opencensus-contrib-spring',
429 'opencensus-contrib-spring-sleuth-v1x',
430 'opencensus-contrib-zpages',
431 'opencensus-exporter-stats-prometheus',
432 'opencensus-exporter-stats-signalfx',
433 'opencensus-exporter-stats-stackdriver',
434 'opencensus-exporter-trace-instana',
435 'opencensus-exporter-trace-logging',
436 'opencensus-exporter-trace-ocagent',
437 'opencensus-exporter-trace-stackdriver',
438 'opencensus-exporter-trace-zipkin',
439 'opencensus-exporter-trace-jaeger',
440 'opencensus-impl-core',
441 'opencensus-impl-lite',
442 'opencensus-impl',
443 'opencensus-testing']
460 tasks.withType(JavaCompile).all { JavaCompile compile ->
463 '-Xmaxerrs', '10000',
464 "-Xbootclasspath/p:${configurations.checkerFrameworkAnnotatedJDK.asPath}",
465 …"-AskipDefs=\\.AutoValue_|^io.opencensus.contrib.appengine.standard.util.TraceIdProto\$|^io.opence…
466 "-AinvariantArrays"
469 …options.forkOptions.jvmArgs += ["-Xbootclasspath/p:${configurations.checkerFrameworkJavac.asPath}"]
477 // supported by io.netty:netty-tcnative-boringssl-static:jar. Also see:
478 // https://github.com/grpc/grpc-java/blob/master/SECURITY.md#tls-with-jdk-jetty-alpnnpn
479 if (project.name in ['opencensus-exporter-stats-stackdriver',
480 'opencensus-exporter-trace-stackdriver']) {
487 alpn 'org.mortbay.jetty.alpn:jetty-alpn-agent:2.0.7'
490 jvmArgs "-javaagent:${configurations.alpn.asPath}"