mirror of https://github.com/grpc/grpc-java.git
all: add gradle format checker
This PR adds an automatic gradle format checker and reformats all the *.gradle files. After this, new changes to *.gradle files will fail to build if not in good format, just like checkStyle failure.
This commit is contained in:
parent
9d26c5c405
commit
5ce10f0146
|
@ -4,14 +4,10 @@ description = "gRPC: All"
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1' }
|
||||
}
|
||||
|
||||
def subprojects = [
|
||||
|
@ -72,7 +68,9 @@ jacocoTestReport {
|
|||
classDirectories = files(subprojects.sourceSets.main.output)
|
||||
classDirectories = files(classDirectories.files.collect {
|
||||
fileTree(dir: it,
|
||||
exclude: ['**/io/grpc/okhttp/internal/**'])
|
||||
exclude: [
|
||||
'**/io/grpc/okhttp/internal/**'
|
||||
])
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -80,6 +78,4 @@ coveralls {
|
|||
sourceDirs = subprojects.sourceSets.main.allSource.srcDirs.flatten()
|
||||
}
|
||||
|
||||
tasks.coveralls {
|
||||
dependsOn(jacocoTestReport)
|
||||
}
|
||||
tasks.coveralls { dependsOn(jacocoTestReport) }
|
||||
|
|
|
@ -5,14 +5,10 @@ targetCompatibility = 1.7
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -36,9 +32,10 @@ configureProtoCompilation()
|
|||
[compileJava, compileTestJava].each() {
|
||||
// ALTS retuns a lot of futures that we mostly don't care about.
|
||||
// protobuf calls valueof. Will be fixed in next release (google/protobuf#4046)
|
||||
it.options.compilerArgs += ["-Xlint:-deprecation", "-Xep:FutureReturnValueIgnored:OFF"]
|
||||
it.options.compilerArgs += [
|
||||
"-Xlint:-deprecation",
|
||||
"-Xep:FutureReturnValueIgnored:OFF"
|
||||
]
|
||||
}
|
||||
|
||||
javadoc {
|
||||
exclude 'io/grpc/alts/internal/**'
|
||||
}
|
||||
javadoc { exclude 'io/grpc/alts/internal/**' }
|
||||
|
|
|
@ -14,26 +14,19 @@ android {
|
|||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
disable 'InvalidPackage', 'HardcodedText'
|
||||
}
|
||||
lintOptions { disable 'InvalidPackage', 'HardcodedText' }
|
||||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.5.1-1'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.5.1-1' }
|
||||
plugins {
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
|
@ -47,10 +40,8 @@ protobuf {
|
|||
}
|
||||
|
||||
task.plugins {
|
||||
grpc {
|
||||
// Options added to --grpc_out
|
||||
option 'nano'
|
||||
}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'nano' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +64,5 @@ dependencies {
|
|||
}
|
||||
|
||||
gradle.projectsEvaluated {
|
||||
tasks.withType(JavaCompile) {
|
||||
options.compilerArgs << "-Xlint:deprecation"
|
||||
}
|
||||
tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:deprecation" }
|
||||
}
|
||||
|
|
|
@ -9,9 +9,7 @@ buildscript {
|
|||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||
|
@ -33,9 +31,7 @@ android {
|
|||
versionName "1.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
lintOptions { abortOnError false }
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
apply plugin: 'application'
|
||||
|
@ -57,7 +53,9 @@ def vmArgs = [
|
|||
task qps_client(type: CreateStartScripts) {
|
||||
mainClassName = "io.grpc.benchmarks.qps.AsyncClient"
|
||||
applicationName = "qps_client"
|
||||
defaultJvmOpts = ["-javaagent:" + configurations.alpnagent.asPath] + vmArgs
|
||||
defaultJvmOpts = [
|
||||
"-javaagent:" + configurations.alpnagent.asPath
|
||||
].plus(vmArgs)
|
||||
outputDir = new File(project.buildDir, 'tmp')
|
||||
classpath = jar.outputs.files + project.configurations.runtime
|
||||
}
|
||||
|
@ -65,7 +63,9 @@ task qps_client(type: CreateStartScripts) {
|
|||
task openloop_client(type: CreateStartScripts) {
|
||||
mainClassName = "io.grpc.benchmarks.qps.OpenLoopClient"
|
||||
applicationName = "openloop_client"
|
||||
defaultJvmOpts = ["-javaagent:" + configurations.alpnagent.asPath] + vmArgs
|
||||
defaultJvmOpts = [
|
||||
"-javaagent:" + configurations.alpnagent.asPath
|
||||
].plus(vmArgs)
|
||||
outputDir = new File(project.buildDir, 'tmp')
|
||||
classpath = jar.outputs.files + project.configurations.runtime
|
||||
}
|
||||
|
@ -80,7 +80,9 @@ task qps_server(type: CreateStartScripts) {
|
|||
task benchmark_worker(type: CreateStartScripts) {
|
||||
mainClassName = "io.grpc.benchmarks.driver.LoadWorker"
|
||||
applicationName = "benchmark_worker"
|
||||
defaultJvmOpts = ["-javaagent:" + configurations.alpnagent.asPath] + vmArgs
|
||||
defaultJvmOpts = [
|
||||
"-javaagent:" + configurations.alpnagent.asPath
|
||||
].plus(vmArgs)
|
||||
outputDir = new File(project.buildDir, 'tmp')
|
||||
classpath = jar.outputs.files + project.configurations.runtime
|
||||
}
|
||||
|
|
78
build.gradle
78
build.gradle
|
@ -1,11 +1,10 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven {
|
||||
url "https://plugins.gradle.org/m2/"
|
||||
}
|
||||
maven { url "https://plugins.gradle.org/m2/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.13.0"
|
||||
classpath 'com.google.gradle:osdetector-gradle-plugin:1.4.0'
|
||||
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.4.0'
|
||||
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
|
||||
|
@ -58,15 +57,21 @@ subprojects {
|
|||
targetCompatibility = 1.6
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
[compileJava, compileTestJava, compileJmhJava].each() {
|
||||
it.options.compilerArgs += ["-Xlint:all", "-Xlint:-options", "-Xlint:-path"]
|
||||
[
|
||||
compileJava,
|
||||
compileTestJava,
|
||||
compileJmhJava
|
||||
].each() {
|
||||
it.options.compilerArgs += [
|
||||
"-Xlint:all",
|
||||
"-Xlint:-options",
|
||||
"-Xlint:-path"
|
||||
]
|
||||
it.options.encoding = "UTF-8"
|
||||
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
|
||||
it.options.compilerArgs += ["-Werror"]
|
||||
|
@ -76,7 +81,10 @@ subprojects {
|
|||
compileTestJava {
|
||||
// serialVersionUID is basically guaranteed to be useless in our tests
|
||||
// LinkedList doesn't hurt much in tests and has lots of usages
|
||||
options.compilerArgs += ["-Xlint:-serial", "-Xep:JdkObsolete:OFF"]
|
||||
options.compilerArgs += [
|
||||
"-Xlint:-serial",
|
||||
"-Xep:JdkObsolete:OFF"
|
||||
]
|
||||
}
|
||||
|
||||
jar.manifest {
|
||||
|
@ -120,11 +128,7 @@ subprojects {
|
|||
artifact = "com.google.protobuf:protoc:${protocVersion}"
|
||||
}
|
||||
}
|
||||
plugins {
|
||||
grpc {
|
||||
path = javaPluginPath
|
||||
}
|
||||
}
|
||||
plugins { grpc { path = javaPluginPath } }
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.dependsOn ':grpc-compiler:java_pluginExecutable'
|
||||
|
@ -135,11 +139,7 @@ subprojects {
|
|||
// Recompile protos when build.gradle has been changed, because
|
||||
// it's possible the version of protoc has been changed.
|
||||
task.inputs.file "${rootProject.projectDir}/build.gradle"
|
||||
task.plugins {
|
||||
grpc {
|
||||
option 'noversion'
|
||||
}
|
||||
}
|
||||
task.plugins { grpc { option 'noversion' } }
|
||||
}
|
||||
}
|
||||
generatedFilesBaseDir = generatedSourcePath
|
||||
|
@ -172,7 +172,11 @@ subprojects {
|
|||
}
|
||||
}
|
||||
|
||||
[compileJava, compileTestJava, compileJmhJava].each() {
|
||||
[
|
||||
compileJava,
|
||||
compileTestJava,
|
||||
compileJmhJava
|
||||
].each() {
|
||||
// Protobuf-generated code produces some warnings.
|
||||
// https://github.com/google/protobuf/issues/2718
|
||||
it.options.compilerArgs += [
|
||||
|
@ -242,7 +246,10 @@ subprojects {
|
|||
compile {
|
||||
// Detect Maven Enforcer's dependencyConvergence failures. We only
|
||||
// care for artifacts used as libraries by others.
|
||||
if (!(project.name in ['grpc-benchmarks', 'grpc-interop-testing'])) {
|
||||
if (!(project.name in [
|
||||
'grpc-benchmarks',
|
||||
'grpc-interop-testing'
|
||||
])) {
|
||||
resolutionStrategy.failOnVersionConflict()
|
||||
}
|
||||
}
|
||||
|
@ -303,7 +310,9 @@ subprojects {
|
|||
// depends on core; core's testCompile depends on testing)
|
||||
includeTests = false
|
||||
if (project.hasProperty('jmhIncludeSingleClass')) {
|
||||
include = [project.property('jmhIncludeSingleClass')]
|
||||
include = [
|
||||
project.property('jmhIncludeSingleClass')
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,9 +326,7 @@ subprojects {
|
|||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
artifacts {
|
||||
archives javadocJar, sourcesJar
|
||||
}
|
||||
artifacts { archives javadocJar, sourcesJar }
|
||||
|
||||
uploadArchives.repositories.mavenDeployer {
|
||||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
||||
|
@ -379,7 +386,12 @@ subprojects {
|
|||
}
|
||||
}
|
||||
if (!(project.name in
|
||||
["grpc-stub", "grpc-protobuf", "grpc-protobuf-lite", "grpc-protobuf-nano"])) {
|
||||
[
|
||||
"grpc-stub",
|
||||
"grpc-protobuf",
|
||||
"grpc-protobuf-lite",
|
||||
"grpc-protobuf-nano"
|
||||
])) {
|
||||
def core = pom.dependencies.find {dep -> dep.artifactId == 'grpc-core'}
|
||||
if (core != null) {
|
||||
// Depend on specific version of grpc-core because internal package is unstable
|
||||
|
@ -468,3 +480,15 @@ publicApiSubprojects.each { name ->
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// format checkers
|
||||
apply plugin: "com.diffplug.gradle.spotless"
|
||||
apply plugin: 'groovy'
|
||||
spotless {
|
||||
groovyGradle {
|
||||
target '**/*.gradle'
|
||||
greclipse()
|
||||
indentWithSpaces()
|
||||
paddedCell()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,15 +5,11 @@ description = 'The protoc plugin for gRPC Java'
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
def artifactStagingPath = "$buildDir/artifacts" as File
|
||||
|
@ -66,23 +62,20 @@ model {
|
|||
}
|
||||
|
||||
platforms {
|
||||
x86_32 {
|
||||
architecture "x86"
|
||||
}
|
||||
x86_64 {
|
||||
architecture "x86_64"
|
||||
}
|
||||
ppcle_64 {
|
||||
architecture "ppcle_64"
|
||||
}
|
||||
aarch_64 {
|
||||
architecture "aarch_64"
|
||||
}
|
||||
x86_32 { architecture "x86" }
|
||||
x86_64 { architecture "x86_64" }
|
||||
ppcle_64 { architecture "ppcle_64" }
|
||||
aarch_64 { architecture "aarch_64" }
|
||||
}
|
||||
|
||||
components {
|
||||
java_plugin(NativeExecutableSpec) {
|
||||
if (arch in ['x86_32', 'x86_64', 'ppcle_64', 'aarch_64']) {
|
||||
if (arch in [
|
||||
'x86_32',
|
||||
'x86_64',
|
||||
'ppcle_64',
|
||||
'aarch_64'
|
||||
]) {
|
||||
// If arch is not within the defined platforms, we do not specify the
|
||||
// targetPlatform so that Gradle will choose what is appropriate.
|
||||
targetPlatform arch
|
||||
|
@ -146,14 +139,10 @@ dependencies {
|
|||
|
||||
sourceSets {
|
||||
testLite {
|
||||
proto {
|
||||
setSrcDirs(['src/test/proto'])
|
||||
}
|
||||
proto { setSrcDirs(['src/test/proto']) }
|
||||
}
|
||||
testNano {
|
||||
proto {
|
||||
setSrcDirs(['src/test/proto'])
|
||||
}
|
||||
proto { setSrcDirs(['src/test/proto']) }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -167,7 +156,11 @@ compileTestJava {
|
|||
compileTestLiteJava {
|
||||
options.compilerArgs = compileTestJava.options.compilerArgs
|
||||
// Protobuf-generated Lite produces quite a few warnings.
|
||||
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough"]
|
||||
options.compilerArgs += [
|
||||
"-Xlint:-rawtypes",
|
||||
"-Xlint:-unchecked",
|
||||
"-Xlint:-fallthrough"
|
||||
]
|
||||
}
|
||||
|
||||
compileTestNanoJava {
|
||||
|
@ -190,41 +183,27 @@ protobuf {
|
|||
artifact = libraries.protoc_lite
|
||||
}
|
||||
}
|
||||
grpc {
|
||||
path = javaPluginPath
|
||||
}
|
||||
grpc { path = javaPluginPath }
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.dependsOn 'java_pluginExecutable'
|
||||
task.inputs.file javaPluginPath
|
||||
}
|
||||
ofSourceSet('test')*.plugins {
|
||||
grpc {}
|
||||
}
|
||||
ofSourceSet('test')*.plugins { grpc {} }
|
||||
ofSourceSet('testLite')*.each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
}
|
||||
task.builtins { remove java }
|
||||
task.plugins {
|
||||
javalite {}
|
||||
grpc {
|
||||
option 'lite'
|
||||
}
|
||||
grpc { option 'lite' }
|
||||
}
|
||||
}
|
||||
ofSourceSet('testNano').each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
javanano {
|
||||
option 'ignore_services=true'
|
||||
}
|
||||
}
|
||||
task.plugins {
|
||||
grpc {
|
||||
option 'nano'
|
||||
}
|
||||
javanano { option 'ignore_services=true' }
|
||||
}
|
||||
task.plugins { grpc { option 'nano' } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,5 +41,8 @@ javadoc {
|
|||
|
||||
animalsniffer {
|
||||
// Don't check sourceSets.jmh
|
||||
sourceSets = [sourceSets.main, sourceSets.test]
|
||||
sourceSets = [
|
||||
sourceSets.main,
|
||||
sourceSets.test
|
||||
]
|
||||
}
|
||||
|
|
|
@ -7,9 +7,7 @@ buildscript {
|
|||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||
}
|
||||
dependencies { classpath 'com.android.tools.build:gradle:3.0.1' }
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
@ -30,22 +28,14 @@ android {
|
|||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
testOptions {
|
||||
unitTests {
|
||||
includeAndroidResources = true
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
testOptions { unitTests { includeAndroidResources = true } }
|
||||
lintOptions { disable 'InvalidPackage' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -14,9 +14,7 @@ android {
|
|||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
@ -30,25 +28,18 @@ android {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.4.0'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.4.0' }
|
||||
plugins {
|
||||
javalite {
|
||||
artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
|
||||
}
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
javalite { artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0" }
|
||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.plugins {
|
||||
javalite {}
|
||||
grpc {
|
||||
// Options added to --grpc_out
|
||||
option 'lite'
|
||||
}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'lite' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,9 +13,7 @@ android {
|
|||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
@ -29,25 +27,18 @@ android {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.5.1-1'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.5.1-1' }
|
||||
plugins {
|
||||
javalite {
|
||||
artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
|
||||
}
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
javalite { artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0" }
|
||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.plugins {
|
||||
javalite {}
|
||||
grpc {
|
||||
// Options added to --grpc_out
|
||||
option 'lite'
|
||||
}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'lite' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,7 @@ android {
|
|||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
@ -28,25 +26,18 @@ android {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.5.1-1'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.5.1-1' }
|
||||
plugins {
|
||||
javalite {
|
||||
artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
|
||||
}
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
javalite { artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0" }
|
||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.plugins {
|
||||
javalite {}
|
||||
grpc {
|
||||
// Options added to --grpc_out
|
||||
option 'lite'
|
||||
}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'lite' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,6 +22,4 @@ allprojects {
|
|||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
task clean(type: Delete) { delete rootProject.buildDir }
|
||||
|
|
|
@ -3,23 +3,17 @@ apply plugin: 'com.google.protobuf'
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
// ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier
|
||||
dependencies { // ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier
|
||||
// gradle versions
|
||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
|
||||
}
|
||||
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3' }
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
|
@ -52,18 +46,12 @@ dependencies {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = "com.google.protobuf:protoc:${protocVersion}"
|
||||
}
|
||||
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
|
||||
plugins {
|
||||
grpc {
|
||||
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
|
||||
}
|
||||
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
|
||||
}
|
||||
generateProtoTasks {
|
||||
all()*.plugins {
|
||||
grpc {}
|
||||
}
|
||||
all()*.plugins { grpc {} }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,9 +15,7 @@ android {
|
|||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled false
|
||||
}
|
||||
debug { minifyEnabled false }
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
@ -51,25 +49,18 @@ android {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.5.1-1'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.5.1-1' }
|
||||
plugins {
|
||||
javalite {
|
||||
artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
|
||||
}
|
||||
grpc {
|
||||
artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
javalite { artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0" }
|
||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
}
|
||||
generateProtoTasks {
|
||||
all().each { task ->
|
||||
task.plugins {
|
||||
javalite {}
|
||||
grpc {
|
||||
// Options added to --grpc_out
|
||||
option 'lite'
|
||||
}
|
||||
grpc { // Options added to --grpc_out
|
||||
option 'lite' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -86,6 +77,4 @@ dependencies {
|
|||
compile 'io.grpc:grpc-stub:1.14.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
repositories { mavenCentral() }
|
||||
|
|
|
@ -50,18 +50,12 @@ dependencies {
|
|||
}
|
||||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.5.1-1'
|
||||
}
|
||||
protoc { artifact = 'com.google.protobuf:protoc:3.5.1-1' }
|
||||
plugins {
|
||||
grpc {
|
||||
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
|
||||
}
|
||||
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
|
||||
}
|
||||
generateProtoTasks {
|
||||
all()*.plugins {
|
||||
grpc {}
|
||||
}
|
||||
all()*.plugins { grpc {} }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,13 +13,12 @@
|
|||
// limitations under the License.
|
||||
description = 'gRPC: gae interop testing (jdk7)'
|
||||
|
||||
buildscript { // Configuration for building
|
||||
buildscript {
|
||||
// Configuration for building
|
||||
repositories {
|
||||
jcenter() // Bintray's repository - a fast Maven Central mirror & more
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.5'
|
||||
|
@ -27,12 +26,11 @@ buildscript { // Configuration for building
|
|||
}
|
||||
}
|
||||
|
||||
repositories { // repositories for Jar's you access in your code
|
||||
repositories {
|
||||
// repositories for Jar's you access in your code
|
||||
mavenLocal()
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
jcenter()
|
||||
}
|
||||
|
||||
|
@ -56,12 +54,14 @@ dependencies {
|
|||
}
|
||||
|
||||
// [START model]
|
||||
appengine { // App Engine tasks configuration
|
||||
appengine {
|
||||
// App Engine tasks configuration
|
||||
run { // local (dev_appserver) configuration (standard environments only)
|
||||
port = 8080 // default
|
||||
}
|
||||
|
||||
deploy { // deploy configuration
|
||||
deploy {
|
||||
// deploy configuration
|
||||
// default - stop the current version
|
||||
stopPreviousVersion = System.getProperty('gaeStopPreviousVersion') ?: true
|
||||
// default - make this the current version
|
||||
|
@ -83,7 +83,11 @@ String getGaeProject() {
|
|||
def stream = new ByteArrayOutputStream()
|
||||
exec {
|
||||
executable 'gcloud'
|
||||
args = ['config', 'get-value', 'project']
|
||||
args = [
|
||||
'config',
|
||||
'get-value',
|
||||
'project'
|
||||
]
|
||||
standardOutput = stream
|
||||
}
|
||||
return stream.toString().trim()
|
||||
|
|
|
@ -13,13 +13,12 @@
|
|||
// limitations under the License.
|
||||
description = 'gRPC: gae interop testing (jdk8)'
|
||||
|
||||
buildscript { // Configuration for building
|
||||
buildscript {
|
||||
// Configuration for building
|
||||
repositories {
|
||||
jcenter() // Bintray's repository - a fast Maven Central mirror & more
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.5'
|
||||
|
@ -27,12 +26,11 @@ buildscript { // Configuration for building
|
|||
}
|
||||
}
|
||||
|
||||
repositories { // repositories for Jar's you access in your code
|
||||
repositories {
|
||||
// repositories for Jar's you access in your code
|
||||
mavenLocal()
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
jcenter()
|
||||
}
|
||||
|
||||
|
@ -53,12 +51,14 @@ dependencies {
|
|||
}
|
||||
|
||||
// [START model]
|
||||
appengine { // App Engine tasks configuration
|
||||
appengine {
|
||||
// App Engine tasks configuration
|
||||
run { // local (dev_appserver) configuration (standard environments only)
|
||||
port = 8080 // default
|
||||
}
|
||||
|
||||
deploy { // deploy configuration
|
||||
deploy {
|
||||
// deploy configuration
|
||||
// default - stop the current version
|
||||
stopPreviousVersion = System.getProperty('gaeStopPreviousVersion') ?: true
|
||||
// default - make this the current version
|
||||
|
@ -80,7 +80,11 @@ String getGaeProject() {
|
|||
def stream = new ByteArrayOutputStream()
|
||||
exec {
|
||||
executable 'gcloud'
|
||||
args = ['config', 'get-value', 'project']
|
||||
args = [
|
||||
'config',
|
||||
'get-value',
|
||||
'project'
|
||||
]
|
||||
standardOutput = stream
|
||||
}
|
||||
return stream.toString().trim()
|
||||
|
|
|
@ -2,14 +2,10 @@ description = "gRPC: GRPCLB LoadBalancer plugin"
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -6,14 +6,10 @@ startScripts.enabled = false
|
|||
// Add dependency on the protobuf plugin
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -53,12 +49,12 @@ test {
|
|||
task test_client(type: CreateStartScripts) {
|
||||
mainClassName = "io.grpc.testing.integration.TestServiceClient"
|
||||
applicationName = "test-client"
|
||||
defaultJvmOpts = ["-javaagent:JAVAAGENT_APP_HOME" + configurations.alpnagent.singleFile.name]
|
||||
defaultJvmOpts = [
|
||||
"-javaagent:JAVAAGENT_APP_HOME" + configurations.alpnagent.singleFile.name
|
||||
]
|
||||
outputDir = new File(project.buildDir, 'tmp')
|
||||
classpath = jar.outputs.files + configurations.runtime
|
||||
dependencies {
|
||||
runtime configurations.alpnagent
|
||||
}
|
||||
dependencies { runtime configurations.alpnagent }
|
||||
doLast {
|
||||
unixScript.text = unixScript.text.replace('JAVAAGENT_APP_HOME', '\$APP_HOME/lib/')
|
||||
windowsScript.text = windowsScript.text.replace('JAVAAGENT_APP_HOME', '%APP_HOME%\\lib\\')
|
||||
|
@ -84,7 +80,10 @@ task stresstest_client(type: CreateStartScripts) {
|
|||
applicationName = "stresstest-client"
|
||||
outputDir = new File(project.buildDir, 'tmp')
|
||||
classpath = jar.outputs.files + configurations.runtime
|
||||
defaultJvmOpts = ["-verbose:gc", "-XX:+PrintFlagsFinal"]
|
||||
defaultJvmOpts = [
|
||||
"-verbose:gc",
|
||||
"-XX:+PrintFlagsFinal"
|
||||
]
|
||||
}
|
||||
|
||||
task http2_client(type: CreateStartScripts) {
|
||||
|
|
|
@ -15,7 +15,9 @@ dependencies {
|
|||
|
||||
[compileJava, compileTestJava].each() {
|
||||
// Netty retuns a lot of futures that we mostly don't care about.
|
||||
it.options.compilerArgs += ["-Xep:FutureReturnValueIgnored:OFF"]
|
||||
it.options.compilerArgs += [
|
||||
"-Xep:FutureReturnValueIgnored:OFF"
|
||||
]
|
||||
}
|
||||
|
||||
javadoc {
|
||||
|
@ -24,11 +26,7 @@ javadoc {
|
|||
}
|
||||
|
||||
project.sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDir "${projectDir}/third_party/netty/java"
|
||||
}
|
||||
}
|
||||
main { java { srcDir "${projectDir}/third_party/netty/java" } }
|
||||
}
|
||||
|
||||
test {
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
|
||||
}
|
||||
repositories { jcenter() }
|
||||
dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2' }
|
||||
}
|
||||
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
|
||||
description = "gRPC: Netty Shaded"
|
||||
|
||||
sourceSets {
|
||||
testShadow {}
|
||||
}
|
||||
sourceSets { testShadow {} }
|
||||
|
||||
dependencies {
|
||||
compile project(':grpc-netty')
|
||||
|
@ -26,11 +20,9 @@ dependencies {
|
|||
shadow project(':grpc-core')
|
||||
}
|
||||
|
||||
artifacts {
|
||||
// We want uploadArchives to handle the shadowJar; we don't care about
|
||||
artifacts { // We want uploadArchives to handle the shadowJar; we don't care about
|
||||
// uploadShadow
|
||||
archives shadowJar
|
||||
}
|
||||
archives shadowJar }
|
||||
|
||||
shadowJar {
|
||||
classifier = null
|
||||
|
|
|
@ -12,16 +12,8 @@ dependencies {
|
|||
}
|
||||
|
||||
project.sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDir "${projectDir}/third_party/okhttp/main/java"
|
||||
}
|
||||
}
|
||||
test {
|
||||
java {
|
||||
srcDir "${projectDir}/third_party/okhttp/test/java"
|
||||
}
|
||||
}
|
||||
main { java { srcDir "${projectDir}/third_party/okhttp/main/java" } }
|
||||
test { java { srcDir "${projectDir}/third_party/okhttp/test/java" } }
|
||||
}
|
||||
|
||||
checkstyleMain.exclude '**/io/grpc/okhttp/internal/**'
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
apply plugin: 'com.google.protobuf'
|
||||
|
@ -27,8 +23,12 @@ dependencies {
|
|||
|
||||
compileTestJava {
|
||||
// Protobuf-generated Lite produces quite a few warnings.
|
||||
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough",
|
||||
"-XepExcludedPaths:.*/build/generated/source/proto/.*"]
|
||||
options.compilerArgs += [
|
||||
"-Xlint:-rawtypes",
|
||||
"-Xlint:-unchecked",
|
||||
"-Xlint:-fallthrough",
|
||||
"-XepExcludedPaths:.*/build/generated/source/proto/.*"
|
||||
]
|
||||
}
|
||||
|
||||
protobuf {
|
||||
|
@ -50,12 +50,8 @@ protobuf {
|
|||
}
|
||||
generateProtoTasks {
|
||||
ofSourceSet('test')*.each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
}
|
||||
task.plugins {
|
||||
javalite {}
|
||||
}
|
||||
task.builtins { remove java }
|
||||
task.plugins { javalite {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// Add dependency on the protobuf plugin
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
description = 'gRPC: Protobuf Nano'
|
||||
|
@ -28,9 +24,7 @@ if (project.hasProperty('protobuf')) {
|
|||
all().each { task ->
|
||||
task.builtins {
|
||||
remove java
|
||||
javanano {
|
||||
option 'ignore_services=true'
|
||||
}
|
||||
javanano { option 'ignore_services=true' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,14 +2,10 @@ description = 'gRPC: Protobuf'
|
|||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// Add dependency on the protobuf plugin
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
description = "gRPC: Services"
|
||||
|
|
|
@ -3,14 +3,10 @@ description = "gRPC: Testing Protos"
|
|||
// Add dependency on the protobuf plugin
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
// The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath libraries.protobuf_plugin
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
||||
}
|
||||
dependencies { classpath libraries.protobuf_plugin }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -20,6 +20,4 @@ dependencies {
|
|||
project(':grpc-core').sourceSets.test.output
|
||||
}
|
||||
|
||||
javadoc {
|
||||
exclude 'io/grpc/internal/**'
|
||||
}
|
||||
javadoc { exclude 'io/grpc/internal/**' }
|
||||
|
|
Loading…
Reference in New Issue