play-services-plugins icon indicating copy to clipboard operation
play-services-plugins copied to clipboard

Plugin com.google.android.gms.oss-licenses-plugin is not compatible with Gradle's configuration cache

Open NinoDLC opened this issue 1 year ago • 2 comments

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:

  1. Enable configuration cache in gradle.properties : org.gradle.configuration-cache=true
  2. Build : ./gradlew assembleDebug
  3. 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

NinoDLC avatar Aug 14 '24 19:08 NinoDLC

There is an easy way to bundle the artifacts.json for you, see https://github.com/cashapp/licensee/releases/tag/1.13.0.

Originally posted by @Goooler in #206

Goooler avatar Mar 21 '25 06:03 Goooler

Duplicate of #246

Goooler avatar Mar 21 '25 06:03 Goooler