Protobuf Plugin for Gradle
DuplicatesStrategy.FAIL
. (#718)GenerateProtoTask.getIsTest()
in the stack trace (#692)buildDir
(#678). buildDir
reading is now delayed until task configuration, so care is still needed if you modify buildDir.Provider.forUseAtConfigurationTime()
for Gradle >= 7.4Querying the mapped value of provider(interface java.util.Set) before task ':project:processResources' has completed is not supported
configureEach
instead of each
within generateProtoTasks {}
, but it is beneficial as long as you are not using any IDE pluginsJavaCompile
and related tasks. This should cause tasks like sourcesJar
and javadoc
to now include the generated code. You may need to exclude the generated code from lintersThe coordinates of the plugin have changed (inadvertently, same as in https://github.com/gradle/plugin-portal-requests/issues/124). If you are not using the plugin DSL, then you will need to change the dependency classpath from gradle.plugin.com.google.protobuf:protobuf-gradle-plugin
to com.google.protobuf:protobuf-gradle-plugin
when upgrading. I hope that's the only issue. I would fix it with another release, but it seems this is how Gradle wants it, because plugin-publish is removing an override.
outputPath
is a zip/jarproto{}
Kotlin DSL for Android builds configuring proto source directory (#443).