A Gradle plugin that transforms Licensee Gradle Plugin artifacts to a format compatible with the OSS Licenses plugin.
This plugin automatically transforms the license data collected by Licensee during your app's build process into two text files:
third_party_licenses
third_party_licenses_metadata
These files are registered as raw resources so they can be consumed by the oss-licenses-android UI components, play-services-oss-licenses library, and other compatible libraries.
- Licensee Gradle Plugin 1.11.0 or higher
- Android Gradle Plugin 7.4.0 or higher
The plugin is available from the Maven Central repository.
In your app-level build script, you must apply the Licensee Bridge Gradle Plugin after the following plugins:
com.android.application
app.cash.licensee
This ensures that the plugin can properly integrate with both the Android and Licensee build systems.
plugins | buildscript |
root-level plugins {
...
id("io.github.droibit.oss-licenses-android.licensee-bridge") version "<version>" apply false
} app-level plugins {
...
id("io.github.droibit.oss-licenses-android.licensee-bridge")
} |
root-level buildscript {
dependencies {
...
classpath("io.github.droibit.oss-licenses-android:licensee-bridge-gradle-plugin:<version>")
}
} app-level plugins {
...
apply(plugin = "io.github.droibit.oss-licenses-android.licensee-bridge")
} |
For detailed information on how to configure Licensee, refer to:
After setting up this plugin, you can choose from several libraries to display the license information in your application:
- OSS Licenses Android
- play-services-oss-licenses
- Other compatible libraries