Open ivan-gomes opened 2 years ago
Could you please provide a minimal reproducible project?
We're using findByName()
instead of getByName()
, so I wonder if one of these is returning null
:
https://github.com/google/protobuf-gradle-plugin/blob/d6f7cffca453d47e34d70865b5b51012d773426e/src/main/groovy/com/google/protobuf/gradle/ProtobufPlugin.groovy#L188-L191
@ivan-gomes
I created a test project with gradle init
and added the protobuf plugin.
No fail in configuration phase. Feel free to fork and modify to provide the details of your project.
Could you describe your project configuration in more detail?
generateProtoTasks
block.
Environment:
In case it's relevant, the Gradle project is multi-module, with the plugin added in the root
build.gradle
and thenapply plugin: 'com.google.protobuf'
'ed in a sub-project'sbuild.gradle
.Error:
Downgrading to 0.8.19 is a known workaround.