Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.94 KB

File metadata and controls

91 lines (62 loc) · 2.94 KB

Licensee Bridge Gradle Plugin

Download Gradle Plugin CI Software License

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.

To Use

Requirements

Add the plugins to your project

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:

This ensures that the plugin can properly integrate with both the Android and Licensee build systems.

pluginsbuildscript

root-level build.gradle.kts

plugins {
  ...  
  id("io.github.droibit.oss-licenses-android.licensee-bridge") version "<version>" apply false
}

app-level build.gradle.kts

plugins {
  ...  
  id("io.github.droibit.oss-licenses-android.licensee-bridge")
}

root-level build.gradle.kts

buildscript {
  dependencies {
    ...
    classpath("io.github.droibit.oss-licenses-android:licensee-bridge-gradle-plugin:<version>")
  }
}

app-level build.gradle.kts

plugins {
  ...  
  apply(plugin = "io.github.droibit.oss-licenses-android.licensee-bridge")
}

For detailed information on how to configure Licensee, refer to:

Displaying license information

After setting up this plugin, you can choose from several libraries to display the license information in your application: