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

Run collectDependencies for a specific variant #859

Closed jsilva05 closed 1 year ago

jsilva05 commented 1 year ago

About this issue

This is actually a feature request. In my current project we have 130+ variants (please don't judge me). This causes the task collectDependencies to take a lot of time when generating licenses.

While browsing the code, I noticed that we are running this task to all the variants here: https://github.com/mikepenz/AboutLibraries/blob/a2d604decbaaa9bfc68eaa8f4f4b811fede975d9/plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/AboutLibrariesPluginAndroidExtension.kt#L18-L20

It would be nice to have this task respect the aboutLibraries.exportVariant property or even create a new one to reduce the time of any of the tasks.

Details

Checklist