Skip to content

Commit

Permalink
build.gradle: bump protobuf plugin to 0.8.4
Browse files Browse the repository at this point in the history
This update automatically adds generated sources and proto IDLs to the
`idea` plugin.
  • Loading branch information
zpencer committed Mar 26, 2018
1 parent 25f3576 commit fe80458
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 62 deletions.
7 changes: 0 additions & 7 deletions alts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,3 @@ configureProtoCompilation()
javadoc {
exclude 'io/grpc/alts/internal/**'
}

idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/grpc");
sourceDirs += file("${projectDir}/src/generated/main/java");
}
}
9 changes: 0 additions & 9 deletions benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,3 @@ applicationDistribution.into("bin") {
from(benchmark_worker)
fileMode = 0755
}

// Let intellij projects refer to generated code
idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/java");
sourceDirs += file("${projectDir}/src/generated/main/grpc");
}
}

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ subprojects {
protobuf_lite: "com.google.protobuf:protobuf-lite:3.0.1",
protoc_lite: "com.google.protobuf:protoc-gen-javalite:3.0.0",
protobuf_nano: "com.google.protobuf.nano:protobuf-javanano:${protobufNanoVersion}",
protobuf_plugin: 'com.google.protobuf:protobuf-gradle-plugin:0.8.3',
protobuf_plugin: 'com.google.protobuf:protobuf-gradle-plugin:0.8.4',
protobuf_util: "com.google.protobuf:protobuf-java-util:${protobufVersion}",
lang: "org.apache.commons:commons-lang3:3.5",

Expand Down
7 changes: 0 additions & 7 deletions grpclb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,3 @@ dependencies {
}

configureProtoCompilation()

idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/grpc");
sourceDirs += file("${projectDir}/src/generated/main/java");
}
}
8 changes: 0 additions & 8 deletions interop-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,3 @@ applicationDistribution.into("bin") {
from(http2_client)
fileMode = 0755
}

// Let intellij projects refer to generated code
idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/java")
sourceDirs += file("${projectDir}/src/generated/main/grpc")
}
}
6 changes: 0 additions & 6 deletions protobuf-lite/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,3 @@ protobuf {
}
}
}

idea {
module {
testSourceDirs += file("${projectDir}/build/generated/source/proto/test/javalite/")
}
}
6 changes: 0 additions & 6 deletions protobuf-nano/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ if (project.hasProperty('protobuf')) {
}
}
}

idea {
module {
sourceDirs += file("${projectDir}/src/generated/test/javanano");
}
}
10 changes: 0 additions & 10 deletions services/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,3 @@ dependencies {
}

configureProtoCompilation()

// Let intellij projects refer to generated code
idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/java");
sourceDirs += file("${projectDir}/src/generated/main/grpc");
testSourceDirs += file("${projectDir}/src/generated/test/java")
testSourceDirs += file("${projectDir}/src/generated/test/grpc")
}
}
8 changes: 0 additions & 8 deletions testing-proto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,3 @@ dependencies {
}

configureProtoCompilation()

// Let intellij projects refer to generated code
idea {
module {
sourceDirs += file("${projectDir}/src/generated/main/java")
sourceDirs += file("${projectDir}/src/generated/main/grpc")
}
}

0 comments on commit fe80458

Please sign in to comment.