• Home
  • Raw
  • Download

Lines Matching +full:google +full:- +full:java +full:- +full:format +full:- +full:eclipse +full:- +full:plugin +full:-

10         classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.6'
11 classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
12 classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.16'
13 classpath "net.ltgt.gradle:gradle-apt-plugin:0.18"
14 classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
15 classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8"
16 classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.8"
17 classpath "gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.0"
22 // Also see https://github.com/ben-manes/gradle-versions-plugin.
23 apply plugin: 'com.github.ben-manes.versions'
26 // OC-Agent exporter depends on grpc-core which depends on errorprone annotations, and it
28 def projectsDependOnGrpcCore = ["opencensus-exporter-metrics-ocagent", "opencensus-exporter-trace-ocagent"]
34 apply plugin: "checkstyle"
35 apply plugin: 'maven'
36 apply plugin: 'idea'
37 apply plugin: 'eclipse'
38 apply plugin: 'java'
39 apply plugin: "signing"
40 apply plugin: "jacoco"
41 // The plugin only has an effect if a signature is specified
42 apply plugin: 'ru.vyarus.animalsniffer'
43 apply plugin: 'findbugs'
44 apply plugin: 'net.ltgt.apt'
45 apply plugin: 'net.ltgt.apt-idea'
46 apply plugin: "me.champeau.gradle.jmh"
47 apply plugin: "io.morethan.jmhreport"
48 apply plugin: 'com.github.sherter.google-java-format'
50 apply plugin: "net.ltgt.errorprone"
54 version = "0.32.0-SNAPSHOT" // CURRENT_OPENCENSUS_VERSION
76 // We suppress the "try" warning because it disallows managing an auto-closeable with
77 // try-with-resources without referencing the auto-closeable within the try block.
79 // https://groups.google.com/forum/#!topic/bazel-discuss/_R3A9TJSoPM
80 it.options.compilerArgs += ["-Xlint:all", "-Xlint:-try", "-Xlint:-processing"]
82 it.options.compilerArgs += ["-XepAllDisabledChecksAsWarnings", "-XepDisableWarningsInGeneratedCode"]
84 // -XepDisableWarningsInGeneratedCode doesn't suppress all warnings in generated
86 it.options.compilerArgs += ["-XepExcludedPaths:.*/gen_gradle/.*"]
89 // API methods (https://github.com/google/error-prone/issues/982).
90 it.options.compilerArgs += ["-Xep:MutableMethodReturnType:OFF"]
93 it.options.compilerArgs += ["-Xep:ReturnMissingNullable:OFF"]
96 it.options.compilerArgs += ["-Xep:Var:OFF"]
98 // ImmutableRefactoring suggests using com.google.errorprone.annotations.Immutable,
100 it.options.compilerArgs += ["-Xep:ImmutableRefactoring:OFF"]
103 // (https://github.com/google/error-prone/issues/1138).
104 it.options.compilerArgs += ["-Xep:NullableDereference:OFF"]
108 it.options.compilerArgs += ["-Xep:ExpectedExceptionRefactoring:OFF"]
109 it.options.compilerArgs += ["-Xep:TestExceptionRefactoring:OFF"]
113 '-processor',
114 'com.google.auto.value.processor.AutoValueProcessor,org.checkerframework.checker.nullness.NullnessChecker',
115 "-Astubs=$rootDir/checker-framework/stubs"
118 it.options.encoding = "UTF-8"
119 // Protobuf-generated code produces some warnings.
120 // https://github.com/google/protobuf/issues/2718
121 it.options.compilerArgs += ["-Xlint:-cast"]
123 // TODO(sebright): Enable -Werror for Java 9 once we upgrade AutoValue (issue #1017).
124 it.options.compilerArgs += ["-Werror"]
127 // TODO(sebright): Currently, building with Java 9 produces the following "options" warnings:
129 // :opencensus-api:compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.6
132 it.options.compilerArgs += ["-Xlint:-options"]
138 options.compilerArgs += ["-Xlint:-serial"]
140 options.compilerArgs += ["-Xlint:-deprecation"]
144 attributes('Implementation-Title': name,
145 'Implementation-Version': version,
146 'Built-By': System.getProperty('user.name'),
147 'Built-JDK': System.getProperty('java.version'),
148 'Source-Compatibility': sourceCompatibility,
149 'Target-Compatibility': targetCompatibility)
153 encoding = 'UTF-8'
165 guavaVersion = '29.0-android'
167 googleCloudBetaVersion = '0.100.0-beta'
187 appengine_api: "com.google.appengine:appengine-api-1.0-sdk:${appengineVersion}",
189 auto_value: "com.google.auto.value:auto-value:${autoValueVersion}",
190 auto_service: 'com.google.auto.service:auto-service:1.0-rc3',
191 byte_buddy: 'net.bytebuddy:byte-buddy:1.8.22',
194 errorprone: "com.google.errorprone:error_prone_annotations:${errorProneVersion}",
195 findbugs_annotations: "com.google.code.findbugs:annotations:${findBugsAnnotationsVersion}",
196 google_auth: "com.google.auth:google-auth-library-credentials:${googleAuthVersion}",
197 google_cloud_logging: "com.google.cloud:google-cloud-logging:${googleCloudGaVersion}",
198 google_cloud_trace: "com.google.cloud:google-cloud-trace:${googleCloudBetaVersion}",
199 zipkin_reporter: "io.zipkin.reporter2:zipkin-reporter:${zipkinReporterVersion}",
200 zipkin_urlconnection: "io.zipkin.reporter2:zipkin-sender-urlconnection:${zipkinReporterVersion}",
201 jaeger_reporter: "io.jaegertracing:jaeger-client:${jaegerReporterVersion}",
202 google_cloud_monitoring: "com.google.cloud:google-cloud-monitoring:${googleCloudGaVersion}",
203 grpc_auth: "io.grpc:grpc-auth:${grpcVersion}",
204 grpc_context: "io.grpc:grpc-context:${grpcVersion}",
205 grpc_core: "io.grpc:grpc-core:${grpcVersion}",
206 grpc_netty: "io.grpc:grpc-netty:${grpcVersion}",
207 grpc_netty_shaded: "io.grpc:grpc-netty-shaded:${grpcVersion}",
208 grpc_stub: "io.grpc:grpc-stub:${grpcVersion}",
209 guava: "com.google.guava:guava:${guavaVersion}",
210 jsr305: "com.google.code.findbugs:jsr305:${findBugsJsr305Version}",
211 signalfx_java: "com.signalfx.public:signalfx-java:${signalfxVersion}",
212 spring_aspects: "org.springframework:spring-aspects:${springVersion}",
213 spring_boot_starter_web: "org.springframework.boot:spring-boot-starter-web:${springBootVersion}",
214 spring_boot_starter_web2: "org.springframework.boot:spring-boot-starter-web:${springBoot2Version}",
215 spring_cloud_build: "org.springframework.cloud:spring-cloud-build:${springCloudVersion}",
216 spring_cloud_starter_sleuth: "org.springframework.cloud:spring-cloud-starter-sleuth:${springCloudVersion}",
217 spring_context: "org.springframework:spring-context:${springVersion}",
218 spring_context_support: "org.springframework:spring-context-support:${springVersion}",
220 protobuf: "com.google.protobuf:protobuf-java:${protobufVersion}",
221 opencensus_proto: "io.opencensus:opencensus-proto:${opencensusProtoVersion}",
222 gson: "com.google.code.gson:gson:${gsonVersion}",
226 guava_testlib: "com.google.guava:guava-testlib:${guavaVersion}",
228 mockito: 'org.mockito:mockito-core:2.28.1',
229 spring_test: "org.springframework:spring-test:${springVersion}",
230 truth: 'com.google.truth:truth:1.0',
231 spring_boot_test: "org.springframework.boot:spring-boot-starter-test:${springBootTestVersion}",
232 spring_boot_test2: "org.springframework.boot:spring-boot-starter-test:${springBoot2Version}",
233 dropwizard: "io.dropwizard.metrics:metrics-core:${dropwizardVersion}",
234 dropwizard5: "io.dropwizard.metrics5:metrics-core:${dropwizard5Version}",
235 sprint_boot_starter_tomcat: "org.springframework.boot:spring-boot-starter-tomcat:${springBoot2Version}",
236 javax_servlet: "javax.servlet:javax.servlet-api:${javaxServletVersion}",
245 if (!(project.name in ['benchmarks', 'opencensus-all'])) {
258 // https://github.com/census-instrumentation/opencensus-java/pull/1112#issuecomment-381366366.
265 compile "org.checkerframework:checker-qual:${checkerFrameworkVersion}"
278 // The ErrorProne plugin defaults to the latest, which would break our
280 errorprone "com.google.errorprone:error_prone_core:${errorProneVersion}"
290 excludeFilter = file("$rootDir/findbugs-exclude.xml")
329 include '**/*.java'
334 include '**/*.java'
368 // ./gradlew -PjmhIncludeSingleClass=StatsTraceContextBenchmark clean :grpc-core:jmh
386 beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
402 url 'https://github.com/census-instrumentation/opencensus-java'
405 connection 'scm:svn:https://github.com/census-instrumentation/opencensus-java'
406 developerConnection 'scm:git:git@github.com/census-instrumentation/opencensus-java'
407 url 'https://github.com/census-instrumentation/opencensus-java'
413 url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
421 email 'census-developers@googlegroups.com'
423 // https://issues.gradle.org/browse/GRADLE-2719
435 name in ['opencensus-api',
436 'opencensus-contrib-agent',
437 'opencensus-contrib-appengine-standard-util',
438 'opencensus-contrib-dropwizard',
439 'opencensus-contrib-dropwizard5',
440 'opencensus-contrib-exemplar-util',
441 'opencensus-contrib-grpc-metrics',
442 'opencensus-contrib-grpc-util',
443 'opencensus-contrib-http-jaxrs',
444 'opencensus-contrib-http-jetty-client',
445 'opencensus-contrib-http-servlet',
446 'opencensus-contrib-http-util',
447 'opencensus-contrib-log-correlation-stackdriver',
448 'opencensus-contrib-observability-ready-util',
449 'opencensus-contrib-resource-util',
450 'opencensus-contrib-spring',
451 'opencensus-contrib-spring-sleuth-v1x',
452 'opencensus-contrib-spring-starter',
453 'opencensus-contrib-zpages',
454 'opencensus-exporter-metrics-ocagent',
455 'opencensus-exporter-metrics-util',
456 'opencensus-exporter-stats-prometheus',
457 'opencensus-exporter-stats-signalfx',
458 'opencensus-exporter-stats-stackdriver',
459 'opencensus-exporter-trace-datadog',
460 'opencensus-exporter-trace-elasticsearch',
461 'opencensus-exporter-trace-instana',
462 'opencensus-exporter-trace-logging',
463 'opencensus-exporter-trace-ocagent',
464 'opencensus-exporter-trace-stackdriver',
465 'opencensus-exporter-trace-zipkin',
466 'opencensus-exporter-trace-jaeger',
467 'opencensus-exporter-trace-util',
468 'opencensus-impl-core',
469 'opencensus-impl-lite',
470 'opencensus-impl',
471 'opencensus-testing']
488 tasks.withType(JavaCompile).all { JavaCompile compile ->
491 '-Xmaxerrs', '10000',
492 "-Xbootclasspath/p:${configurations.checkerFrameworkAnnotatedJDK.asPath}",
493 "-AskipDefs=\\.AutoValue_|^io.opencensus.contrib.appengine.standard.util.TraceIdProto\$|^io.opencensus.contrib.appengine.standard.util.TraceProto\$",
494 "-AinvariantArrays"
497 options.forkOptions.jvmArgs += ["-Xbootclasspath/p:${configurations.checkerFrameworkJavac.asPath}"]
505 // supported by io.netty:netty-tcnative-boringssl-static:jar. Also see:
506 // https://github.com/grpc/grpc-java/blob/master/SECURITY.md#tls-with-jdk-jetty-alpnnpn
507 if (project.name in ['opencensus-exporter-stats-stackdriver',
508 'opencensus-exporter-trace-stackdriver']) {
515 alpn 'org.mortbay.jetty.alpn:jetty-alpn-agent:2.0.7'
518 jvmArgs "-javaagent:${configurations.alpn.asPath}"