I’m looking for a way to automatically scan and list all the libraries used in my Android project, along with their version numbers. I want this information to be displayed in a clear and concise format within the app itself. This will help me document the used libraries and their corresponding licenses. I’m hoping to find an automated solution that can keep the list up-to-date as I add or remove libraries from the Gradle dependencies.
I tried to use Google official plugin called play-services-oss-licenses
but its showing blank activity
2
Answers
I use https://github.com/mikepenz/AboutLibraries even though the author does not support using it in a Java App, only say he supports Kotlin, it still usable you just you need to convert the Kotlin to Java from the Docs.
Note that if a dependency does not specify a license in it’s pom then it still might not be picked up and needs to be manually added.
I can suggest https://docs.renovatebot.com/ quite a good one. It is a
a tool designed to automate the process of keeping dependencies up-to-date in projects. Renovate Bot scans a project’s dependencies, identifies outdated ones, and automatically creates pull requests with the necessary updates. It supports various languages and platforms, integrates with popular version control systems like GitHub, GitLab, and Bitbucket, and offers customization options to manage how and when updates are applied. The documentation provides detailed information on configuring, using, and troubleshooting the bot.