play-services-plugins
play-services-plugins copied to clipboard
Plugin com.google.android.gms.oss-licenses-plugin is not compatible with Gradle's configuration cache
Describe the bug
The plugin com.google.android.gms.oss-licenses-plugin is not compatible with Gradle's configuration cache.
To Reproduce Steps to reproduce the behavior:
- Enable configuration cache in
gradle.properties:org.gradle.configuration-cache=true - Build :
./gradlew assembleDebug - See error:
1147 problems were found storing the configuration cache, 1 of which seem unique.
- Task `fooReleaseOssLicensesTask` of type `com.google.android.gms.oss.licenses.plugin.LicensesTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
Expected behavior Configuration cache should work when the plugin is used.
Desktop (please complete the following information):
- Gradle version: 8.7
- Plugin name and version: version: com.google.android.gms.oss-licenses-plugin:0.10.6
There is an easy way to bundle the
artifacts.jsonfor you, see https://github.com/cashapp/licensee/releases/tag/1.13.0.
Originally posted by @Goooler in #206
Duplicate of #246