mirror of https://github.com/grpc/grpc-java.git
Bump com.google.protobuf gradle plugin to 0.9.5
The plugin now outputs to "generated/sources". The IDE configuration explicitly adding the folders to the source sets hasn't been needed for some years.
This commit is contained in:
parent
12aaf88d86
commit
be0247f501
|
|
@ -152,7 +152,7 @@ For non-Android protobuf-based codegen integrated with the Gradle build system,
|
||||||
you can use [protobuf-gradle-plugin][]:
|
you can use [protobuf-gradle-plugin][]:
|
||||||
```gradle
|
```gradle
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
|
|
@ -185,7 +185,7 @@ use protobuf-gradle-plugin but specify the 'lite' options:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ subprojects {
|
||||||
appendToProperty(
|
appendToProperty(
|
||||||
it.options.errorprone.excludedPaths,
|
it.options.errorprone.excludedPaths,
|
||||||
".*/src/generated/[^/]+/java/.*" +
|
".*/src/generated/[^/]+/java/.*" +
|
||||||
"|.*/build/generated/source/proto/[^/]+/java/.*",
|
"|.*/build/generated/sources/proto/[^/]+/java/.*",
|
||||||
"|")
|
"|")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileTestJava").configure {
|
tasks.named("compileTestJava").configure {
|
||||||
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
|
options.errorprone.excludedPaths = ".*/build/generated/sources/proto/.*"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileTestLiteJava").configure {
|
tasks.named("compileTestLiteJava").configure {
|
||||||
|
|
@ -160,7 +160,7 @@ tasks.named("compileTestLiteJava").configure {
|
||||||
options.compilerArgs += [
|
options.compilerArgs += [
|
||||||
"-Xlint:-cast"
|
"-Xlint:-cast"
|
||||||
]
|
]
|
||||||
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
|
options.errorprone.excludedPaths = ".*/build/generated/sources/proto/.*"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("checkstyleTestLite").configure {
|
tasks.named("checkstyleTestLite").configure {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.4.0'
|
classpath 'com.android.tools.build:gradle:7.4.0'
|
||||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
|
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.4.0'
|
classpath 'com.android.tools.build:gradle:7.4.0'
|
||||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
|
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.4.0'
|
classpath 'com.android.tools.build:gradle:7.4.0'
|
||||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
|
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.4.0'
|
classpath 'com.android.tools.build:gradle:7.4.0'
|
||||||
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
|
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -52,16 +52,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
// Creates start scripts for a class name and adds it to the distribution. The
|
// Creates start scripts for a class name and adds it to the distribution. The
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -40,16 +40,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
||||||
id "com.google.protobuf" version "0.9.4"
|
id "com.google.protobuf" version "0.9.5"
|
||||||
|
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
||||||
id "com.google.protobuf" version "0.9.4"
|
id "com.google.protobuf" version "0.9.5"
|
||||||
|
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -46,16 +46,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
task googleAuthClient(type: CreateStartScripts) {
|
task googleAuthClient(type: CreateStartScripts) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
||||||
id "com.google.protobuf" version "0.9.4"
|
id "com.google.protobuf" version "0.9.5"
|
||||||
id 'com.google.cloud.tools.jib' version '3.4.4' // For releasing to Docker Hub
|
id 'com.google.cloud.tools.jib' version '3.4.4' // For releasing to Docker Hub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -51,16 +51,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
task hellowWorldJwtAuthServer(type: CreateStartScripts) {
|
task hellowWorldJwtAuthServer(type: CreateStartScripts) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -51,16 +51,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
task hellowWorldOauthServer(type: CreateStartScripts) {
|
task hellowWorldOauthServer(type: CreateStartScripts) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'war'
|
id 'war'
|
||||||
|
|
@ -34,13 +34,3 @@ protobuf {
|
||||||
all()*.plugins { grpc {} }
|
all()*.plugins { grpc {} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
// Provide convenience executables for trying out the examples.
|
// Provide convenience executables for trying out the examples.
|
||||||
id 'application'
|
id 'application'
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
}
|
}
|
||||||
|
|
@ -41,16 +41,6 @@ protobuf {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java {
|
|
||||||
srcDirs 'build/generated/source/proto/main/grpc'
|
|
||||||
srcDirs 'build/generated/source/proto/main/java'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
startScripts.enabled = false
|
startScripts.enabled = false
|
||||||
|
|
||||||
task helloWorldTlsServer(type: CreateStartScripts) {
|
task helloWorldTlsServer(type: CreateStartScripts) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'application' // Provide convenience executables for trying out the examples.
|
id 'application' // Provide convenience executables for trying out the examples.
|
||||||
id 'com.google.protobuf' version '0.9.4'
|
id 'com.google.protobuf' version '0.9.5'
|
||||||
// Generate IntelliJ IDEA's .idea & .iml project files
|
// Generate IntelliJ IDEA's .idea & .iml project files
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'java'
|
id 'java'
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ tasks.named("compileTestJava").configure {
|
||||||
options.compilerArgs += [
|
options.compilerArgs += [
|
||||||
"-Xlint:-cast"
|
"-Xlint:-cast"
|
||||||
]
|
]
|
||||||
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
|
options.errorprone.excludedPaths = ".*/build/generated/sources/proto/.*"
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ pluginManagement {
|
||||||
// https://github.com/google/osdetector-gradle-plugin/tags
|
// https://github.com/google/osdetector-gradle-plugin/tags
|
||||||
id "com.google.osdetector" version "1.7.3"
|
id "com.google.osdetector" version "1.7.3"
|
||||||
// https://github.com/google/protobuf-gradle-plugin/releases
|
// https://github.com/google/protobuf-gradle-plugin/releases
|
||||||
id "com.google.protobuf" version "0.9.4"
|
id "com.google.protobuf" version "0.9.5"
|
||||||
// https://github.com/GradleUp/shadow/releases
|
// https://github.com/GradleUp/shadow/releases
|
||||||
// 8.3.2+ requires Java 11+
|
// 8.3.2+ requires Java 11+
|
||||||
// 8.3.1 breaks apache imports for netty/shaded, fixed in 8.3.2
|
// 8.3.1 breaks apache imports for netty/shaded, fixed in 8.3.2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue