mikepenz / AboutLibraries

AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments
http://mikepenz.github.io/AboutLibraries/
Apache License 2.0
3.62k stars 419 forks source link

Configuration caching failure in Android projects #839

Open ILikeYourHat opened 1 year ago

ILikeYourHat commented 1 year ago

About this issue

I've found an issue with caching in AboutLibrary plugin, a pretty serious I think.

Details

The recipe for disaster:

Expected outcome:

Actual outcome:

FAILURE: Build failed with an exception.

* What went wrong:
An exception occurred applying plugin request [id: 'com.android.library']
> Failed to apply plugin 'com.android.internal.library'.
   > Gradle#projectsEvaluated(Action) on build 'AboutLibrariesTestApp' cannot be executed in the current context.

So, in other words: assembling release application is broken.

I've prepared a sample application with this issue, reduced to the bare minimum needed to reproduce it: https://github.com/ILikeYourHat/AboutLibrariesTestApp

Checklist

mikepenz commented 1 year ago

Thank you very much for the report @ILikeYourHat