v0.9.0
版本发布时间: 2022-10-07 02:18:08
google/protobuf-gradle-plugin最新发布版本:v0.9.4(2023-07-15 08:08:41)
Fixed bugs
- Workaround provider bug in Gradle when excluding tasks (#576). Errors were of the form
Querying the mapped value of provider(interface java.util.Set) before task ':project:processResources' has completed is not supported
Improvements
- Improved Kotlin accessor support for Android Gradle Plugin 7.x, which uses a different SourceSet class (#565, fixes #540)
- Migrated project.protobuf from a convention to an extension (#577). This greatly improves the Kotlin experience, as fewer imports are necessary. On upgrade, kts users will need to remove any now-unnecessary imports from their scripts
- Significantly improve support for task configuration avoidance. README.md has not yet been updated to encourage using
configureEach
instead ofeach
withingenerateProtoTasks {}
, but it is beneficial as long as you are not using any IDE plugins - Added generated code to java SourceSet instead of only adding it to
JavaCompile
and related tasks. This should cause tasks likesourcesJar
andjavadoc
to now include the generated code. You may need to exclude the generated code from linters - Added Eclipse and VSCode support (#590). They should no longer have trouble finding generated code
- Removed references to unused Gradle-internal FileResolver (#595)
- Removed usage of deprecated GUtil (#604)
- Removed dependency on Apache commons-lang (#606)
- Removed dependency on Guava (#609)
- Upgraded osdetector-gradle-plugin to 1.7.1
- Substantial internal modernization. This should not impact most users, but there is risk of a regression or observing timing differences.
Thanks to contributors
- @donat
- Special thanks to new maintainer @rougsig