Lines Matching +full:- +full:- +full:google +full:- +full:java +full:- +full:format +full:- +full:jar
7 classpath "com.diffplug.spotless:spotless-plugin-gradle:3.13.0"
8 classpath 'com.google.gradle:osdetector-gradle-plugin:1.4.0'
9 classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.5'
10 classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
11 classpath 'net.ltgt.gradle:gradle-apt-plugin:0.13'
12 classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.5"
13 classpath 'me.champeau.gradle:japicmp-gradle-plugin:0.2.5'
19 apply plugin: "java"
26 apply plugin: "com.google.osdetector"
29 // jdk10 not supported by errorprone: https://github.com/google/error-prone/issues/860
38 errorprone 'com.google.errorprone:error_prone_core:2.2.0'
39 apt 'com.google.guava:guava-beta-checker:1.0'
42 // Remove per-project error-prone checker config
44 afterEvaluate { project ->
46 options.compilerArgs.removeAll { it.startsWith("-Xep") }
62 maven { // The google mirror is less flaky than mavenCentral()
63 url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
73 "-Xlint:all",
74 "-Xlint:-options",
75 "-Xlint:-path",
76 "-Xlint:-try"
78 it.options.encoding = "UTF-8"
80 it.options.compilerArgs += ["-Werror"]
88 "-Xlint:-serial",
89 "-Xep:JdkObsolete:OFF"
93 jar.manifest {
94 attributes('Implementation-Title': name,
95 'Implementation-Version': version,
96 'Built-By': System.getProperty('user.name'),
97 'Built-JDK': System.getProperty('java.version'),
98 'Source-Compatibility': sourceCompatibility,
99 'Target-Compatibility': targetCompatibility)
103 encoding = 'UTF-8'
110 protocPluginBaseName = 'protoc-gen-grpc-java'
114 guavaVersion = '26.0-android'
116 protocVersion = '3.5.1-1'
117 protobufNanoVersion = '3.0.0-alpha-5'
122 if (rootProject.childProjects.containsKey('grpc-compiler')) {
125 project.apply plugin: 'com.google.protobuf'
131 artifact = "com.google.protobuf:protoc:${protocVersion}"
136 all().each { task ->
137 task.dependsOn ':grpc-compiler:java_pluginExecutable'
138 … // Delete the generated sources first, so that we can be alerted if they are not re-compiled.
151 sourceSets.each { sourceSet ->
159 // Otherwise, we just use the checked-in generated code.
162 java {
163 srcDir "${generatedSourcePath}/main/java"
169 java {
170 srcDir "${generatedSourcePath}/test/java"
183 // Protobuf-generated code produces some warnings.
184 // https://github.com/google/protobuf/issues/2718
186 "-Xlint:-cast",
187 "-XepExcludedPaths:.*/src/generated/[^/]+/java/.*",
193 if (osdetector.classifier in ["linux-x86_64"]) {
194 // The native code is only pre-compiled on certain platforms.
198 animalsniffer_annotations: "org.codehaus.mojo:animal-sniffer-annotations:1.17",
199 errorprone: "com.google.errorprone:error_prone_annotations:2.2.0",
200 gson: "com.google.code.gson:gson:2.7",
201 guava: "com.google.guava:guava:${guavaVersion}",
203 javax_annotation: 'javax.annotation:javax.annotation-api:1.2',
204 jsr305: 'com.google.code.findbugs:jsr305:3.0.2',
205 oauth_client: 'com.google.auth:google-auth-library-oauth2-http:0.9.0',
206 google_api_protos: 'com.google.api.grpc:proto-google-common-protos:1.0.0',
207 google_auth_credentials: 'com.google.auth:google-auth-library-credentials:0.9.0',
208 google_auth_oauth2_http: 'com.google.auth:google-auth-library-oauth2-http:0.9.0',
211 opencensus_api: "io.opencensus:opencensus-api:${opencensusVersion}",
212 …opencensus_contrib_grpc_metrics: "io.opencensus:opencensus-contrib-grpc-metrics:${opencensusVersio…
213 opencensus_impl: "io.opencensus:opencensus-impl:${opencensusVersion}",
214 opencensus_impl_lite: "io.opencensus:opencensus-impl-lite:${opencensusVersion}",
215 instrumentation_api: 'com.google.instrumentation:instrumentation-api:0.4.3',
216 protobuf: "com.google.protobuf:protobuf-java:${protobufVersion}",
217 protobuf_lite: "com.google.protobuf:protobuf-lite:3.0.1",
218 protoc_lite: "com.google.protobuf:protoc-gen-javalite:3.0.0",
219 protobuf_nano: "com.google.protobuf.nano:protobuf-javanano:${protobufNanoVersion}",
220 protobuf_plugin: 'com.google.protobuf:protobuf-gradle-plugin:0.8.5',
221 protobuf_util: "com.google.protobuf:protobuf-java-util:${protobufVersion}",
222 lang: "org.apache.commons:commons-lang3:3.5",
224 netty: "io.netty:netty-codec-http2:[${nettyVersion}]",
225 netty_epoll: "io.netty:netty-transport-native-epoll:${nettyVersion}" + epoll_suffix,
226 netty_proxy_handler: "io.netty:netty-handler-proxy:${nettyVersion}",
227 netty_tcnative: 'io.netty:netty-tcnative-boringssl-static:2.0.17.Final',
229 conscrypt: 'org.conscrypt:conscrypt-openjdk-uber:1.0.1',
230 re2j: 'com.google.re2j:re2j:1.2',
234 mockito: 'org.mockito:mockito-core:1.9.5',
235 truth: 'com.google.truth:truth:0.42',
236 guava_testlib: "com.google.guava:guava-testlib:${guavaVersion}",
240 math: 'org.apache.commons:commons-math3:3.6',
243 jetty_alpn_agent: 'org.mortbay.jetty.alpn:jetty-alpn-agent:2.0.7'
255 'grpc-benchmarks',
256 'grpc-interop-testing',
257 'grpc-gae-interop-testing-jdk7',
258 'grpc-gae-interop-testing-jdk8',
273 jmh 'org.openjdk.jmh:jmh-core:1.19',
274 'org.openjdk.jmh:jmh-generator-bytecode:1.19'
282 // Disable JavaDoc doclint on Java 8. It's annoying.
286 options.addStringOption('Xdoclint:none', '-quiet')
310 source = fileTree(dir: "src/main", include: "**/*.java")
314 source = fileTree(dir: "src/test", include: "**/*.java")
318 // ./gradlew -PjmhIncludeSingleClass=StatsTraceContextBenchmark clean :grpc-core:jmh
323 // None of our benchmarks need the tests, and we have pseudo-circular
334 task javadocJar(type: Jar) {
339 task sourcesJar(type: Jar) {
347 beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
367 uploadArchives.onlyIf { !name.contains("grpc-gae-interop-testing") }
372 ]*.pom*.whenConfigured { pom ->
376 url 'https://github.com/grpc/grpc-java'
379 connection 'scm:git:https://github.com/grpc/grpc-java.git'
380 developerConnection 'scm:git:git@github.com:grpc/grpc-java.git'
381 url 'https://github.com/grpc/grpc-java'
387 url 'https://opensource.org/licenses/Apache-2.0'
395 email "grpc-io@googlegroups.com"
397 // https://issues.gradle.org/browse/GRADLE-2719
399 organizationUrl "https://www.google.com"
405 "grpc-stub",
406 "grpc-protobuf",
407 "grpc-protobuf-lite",
408 "grpc-protobuf-nano"
410 def core = pom.dependencies.find {dep -> dep.artifactId == 'grpc-core'}
412 // Depend on specific version of grpc-core because internal package is unstable
430 // Run with: ./gradlew japicmp --continue
433 // TODO: uncomment after grpc-alts artifact is published.
434 // ':grpc-alts',
435 ':grpc-auth',
436 ':grpc-context',
437 ':grpc-core',
438 ':grpc-grpclb',
439 ':grpc-netty',
440 ':grpc-okhttp',
441 ':grpc-protobuf',
442 ':grpc-protobuf-lite',
443 ':grpc-protobuf-nano',
444 ':grpc-stub',
445 ':grpc-testing',
448 publicApiSubprojects.each { name ->
452 // Get the baseline version's jar for this subproject
454 // Use a detached configuration, otherwise the current version's jar will take precedence
455 // over the baseline jar.
457 …// https://discuss.gradle.org/t/is-the-default-configuration-leaking-into-independent-configuratio…
461 String depModule = "io.grpc:${project.name}:${baselineGrpcVersion}@jar"
462 String depJar = "${project.name}-${baselineGrpcVersion}.jar"
473 // Add a japicmp task that compares the current .jar with baseline .jar
474 task japicmp(type: me.champeau.gradle.japicmp.JapicmpTask, dependsOn: jar) {
476 newClasspath = files(jar.archivePath)
489 // TODO(zpencer): enable after japicmp-gradle-plugin/pull/14
493 // TODO(zpencer): enable after japicmp-gradle-plugin/pull/15
499 // format checkers