You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Build Analyzer is giving a warning that the build can be optimize with Configuration cache but it says that this library does not support it.
To Reproduce
Steps to reproduce the behavior:
0. Use Android Studio Flamingo | 2022.2.1 Canary 2 with AGP version 8.0.0-alpha02
Create project
Add oss-licenses plugin
Build project
See Build Analyzer
Expected behavior
Support Configuration cache to optimize build time
Screenshots
Desktop (please complete the following information):
Gradle version: 7.5
Android Studio version [e.g. 3.1 (stable)]: Android Studio Flamingo | 2022.2.1 Canary 2
Plugin name and version [e.g. OSS Licenses 16.0.0]: 17.0.0
Reacted by Sven Jacobs, D Gardner, ddello32, Jasper van Putten, Wez, Illia Achour, Alex Decker, Sang Ha X., David Medenjak, laOLIVAesVERDE and 16 more
Reacted by Gerard Sala, Joakim Engström, Rémy DUPONT, Hakan Bagci, Lou Park, D Gardner, ddello32, Wez, gxcare, Dominik Murzynowski and 2 more
@Goooler does Licensee provide the same functionality as the oss-licenses-plugin here? BTW +1 for this request, it's a waste of time for us to configure our gradle project repeatedly, especially in local build.
This is (finally) fixed in main and will be released as v0.11.0 early next week. I now work on the team that owns the plugin so I finally got to fix it :)
If there are any issues with the new release, please file a new issue, I'll be monitoring them.
Reacted by Róbert Papp
Reacted by Yuval Gnessin, Yuki, Saryong Kang and Simon Marquis
I am a bit confused about the release process. I can see v0.11.0 on my GitHub feed, but if I update my project's dependencies it is nowhere to be found. What is the best way to know when the release has finally been published?
Hi, I'm sorry, the release goes through another team's release process and at the time I posted I hadn't realized that they release on Thursdays (and had just missed the window last Thursday). You can follow #389, and there's instructions there for manually trying out the plugin from main.
Activity
emartynov commentedon Apr 4, 2023
We enabled the configuration cache, but it was discarded because an incompatible task
debugOssLicensesTaskwas found.It looks like only because of this line https://github.com/google/play-services-plugins/blob/master/oss-licenses-plugin/src/main/groovy/com/google/android/gms/oss/licenses/plugin/LicensesTask.groovy#L235
timothyfroehlich commentedon May 5, 2023
Are there any plans for support here?
Goooler commentedon Jun 8, 2023
For ones who need config cache support, you can migrate this plugin to Licensee, just ref LawnchairLauncher/lawnchair#3492.
Originally posted by @Goooler in #206 (comment)
TedaLIEz commentedon Jul 11, 2023
@Goooler does Licensee provide the same functionality as the oss-licenses-plugin here? BTW +1 for this request, it's a waste of time for us to configure our gradle project repeatedly, especially in local build.
Goooler commentedon Jul 11, 2023
No
OssLicensesMenuActivity, but with theartifacts.json, just ref my PR to migrate the plugin.Goooler commentedon Jul 11, 2023
Actually, the CC compatibility issue had been finished in #242, but just marked related tasks
notCompatibleWithConfigurationCache.ganadist commentedon Mar 17, 2025
Since Gradle 10.0, configuration cache will be enabled as default.
ganadist commentedon Mar 19, 2025
It looks plugin should use https://developer.android.com/reference/tools/gradle-api/8.9/com/android/build/api/variant/ApplicationVariant?hl=en instead of
com.android.build.gradle.api.BaseVariantGoooler commentedon Mar 21, 2025
Originally posted by @Goooler in #206
syslogic commentedon Dec 5, 2025
There still seems to be a task-dependency missing #327.
It will complain unless configuring the generated tasks.
build: upgrade to Gradle 9.4.0 and optimize build performance
timothyfroehlich commentedon Mar 12, 2026
This is (finally) fixed in main and will be released as v0.11.0 early next week. I now work on the team that owns the plugin so I finally got to fix it :)
If there are any issues with the new release, please file a new issue, I'll be monitoring them.
argenkiwi commentedon Mar 17, 2026
I am a bit confused about the release process. I can see v0.11.0 on my GitHub feed, but if I update my project's dependencies it is nowhere to be found. What is the best way to know when the release has finally been published?
SimonMarquis commentedon Mar 18, 2026
You can browse Google's Maven Repository
timothyfroehlich commentedon Mar 18, 2026
Hi, I'm sorry, the release goes through another team's release process and at the time I posted I hadn't realized that they release on Thursdays (and had just missed the window last Thursday). You can follow #389, and there's instructions there for manually trying out the plugin from main.
timothyfroehlich commentedon Mar 19, 2026
It's been released! I'm closing this issue, if there are any new problems, please open new issues.