Problem
The io.github.lognet.grpc-spring-boot Gradle plugin (v5.2.0) fails to configure when used together with com.google.protobuf v0.10.0.
Error
Cannot set the value of read-only property 'generatedFilesBaseDir' for extension 'protobuf' of type com.google.protobuf.gradle.ProtobufExtension.
The error originates from line 89 of the plugin's internal grpc-spring-boot.gradle script.
Root Cause
generatedFilesBaseDir was deprecated in com.google.protobuf v0.9.2 and made read-only in v0.10.0 (see release notes: https://github.com/google/protobuf-gradle-plugin/releases/tag/v0.10.0).
Reproduction
// build.gradle
plugins {
id 'com.google.protobuf' version '0.10.0'
id 'io.github.lognet.grpc-spring-boot' version '5.2.0'
}
Running ./gradlew build produces the error above.
Expected Behavior
The plugin should be compatible with com.google.protobuf v0.10.0 by removing or replacing the generatedFilesBaseDir assignment.
Environment
- grpc-spring-boot-starter-gradle-plugin: 5.2.0
- com.google.protobuf: 0.10.0
- Gradle: 9.4.1
- Java: 21
Problem
The
io.github.lognet.grpc-spring-bootGradle plugin (v5.2.0) fails to configure when used together withcom.google.protobufv0.10.0.Error
The error originates from line 89 of the plugin's internal
grpc-spring-boot.gradlescript.Root Cause
generatedFilesBaseDirwas deprecated incom.google.protobufv0.9.2 and made read-only in v0.10.0 (see release notes: https://github.com/google/protobuf-gradle-plugin/releases/tag/v0.10.0).Reproduction
Running
./gradlew buildproduces the error above.Expected Behavior
The plugin should be compatible with
com.google.protobufv0.10.0 by removing or replacing thegeneratedFilesBaseDirassignment.Environment