Skip to content

Commit be0247f

Browse files
committed
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.
1 parent 12aaf88 commit be0247f

File tree

25 files changed

+27
-97
lines changed

25 files changed

+27
-97
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ For non-Android protobuf-based codegen integrated with the Gradle build system,
152152
you can use [protobuf-gradle-plugin][]:
153153
```gradle
154154
plugins {
155-
id 'com.google.protobuf' version '0.9.4'
155+
id 'com.google.protobuf' version '0.9.5'
156156
}
157157
158158
protobuf {
@@ -185,7 +185,7 @@ use protobuf-gradle-plugin but specify the 'lite' options:
185185

186186
```gradle
187187
plugins {
188-
id 'com.google.protobuf' version '0.9.4'
188+
id 'com.google.protobuf' version '0.9.5'
189189
}
190190
191191
protobuf {

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ subprojects {
151151
appendToProperty(
152152
it.options.errorprone.excludedPaths,
153153
".*/src/generated/[^/]+/java/.*" +
154-
"|.*/build/generated/source/proto/[^/]+/java/.*",
154+
"|.*/build/generated/sources/proto/[^/]+/java/.*",
155155
"|")
156156
}
157157
}

compiler/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ dependencies {
152152
}
153153

154154
tasks.named("compileTestJava").configure {
155-
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
155+
options.errorprone.excludedPaths = ".*/build/generated/sources/proto/.*"
156156
}
157157

158158
tasks.named("compileTestLiteJava").configure {
159159
options.compilerArgs = compileTestJava.options.compilerArgs
160160
options.compilerArgs += [
161161
"-Xlint:-cast"
162162
]
163-
options.errorprone.excludedPaths = ".*/build/generated/source/proto/.*"
163+
options.errorprone.excludedPaths = ".*/build/generated/sources/proto/.*"
164164
}
165165

166166
tasks.named("checkstyleTestLite").configure {

examples/android/clientcache/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:7.4.0'
10-
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
10+
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

examples/android/helloworld/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:7.4.0'
10-
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
10+
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

examples/android/routeguide/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:7.4.0'
10-
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
10+
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

examples/android/strictmode/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:7.4.0'
10-
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.4"
10+
classpath "com.google.protobuf:protobuf-gradle-plugin:0.9.5"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

examples/build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
// Provide convenience executables for trying out the examples.
33
id 'application'
4-
id 'com.google.protobuf' version '0.9.4'
4+
id 'com.google.protobuf' version '0.9.5'
55
// Generate IntelliJ IDEA's .idea & .iml project files
66
id 'idea'
77
}
@@ -52,16 +52,6 @@ protobuf {
5252
}
5353
}
5454

55-
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
56-
sourceSets {
57-
main {
58-
java {
59-
srcDirs 'build/generated/source/proto/main/grpc'
60-
srcDirs 'build/generated/source/proto/main/java'
61-
}
62-
}
63-
}
64-
6555
startScripts.enabled = false
6656

6757
// Creates start scripts for a class name and adds it to the distribution. The

examples/example-alts/build.gradle

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
// Provide convenience executables for trying out the examples.
33
id 'application'
4-
id 'com.google.protobuf' version '0.9.4'
4+
id 'com.google.protobuf' version '0.9.5'
55
// Generate IntelliJ IDEA's .idea & .iml project files
66
id 'idea'
77
}
@@ -40,16 +40,6 @@ protobuf {
4040
}
4141
}
4242

43-
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
44-
sourceSets {
45-
main {
46-
java {
47-
srcDirs 'build/generated/source/proto/main/grpc'
48-
srcDirs 'build/generated/source/proto/main/java'
49-
}
50-
}
51-
}
52-
5343
startScripts.enabled = false
5444

5545

examples/example-debug/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'application' // Provide convenience executables for trying out the examples.
33
id 'java'
44

5-
id "com.google.protobuf" version "0.9.4"
5+
id "com.google.protobuf" version "0.9.5"
66

77
// Generate IntelliJ IDEA's .idea & .iml project files
88
id 'idea'

0 commit comments

Comments
 (0)