feat(android): add Licensee to track dependency licenses

This commit is contained in:
Harsh Shandilya 2023-08-04 01:04:00 +05:30
parent 52deb7ca5f
commit 1e396bc7ff
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View file

@ -19,6 +19,7 @@ plugins {
alias(libs.plugins.modulegraphassert)
alias(libs.plugins.whetstone)
alias(libs.plugins.baselineprofile)
alias(libs.plugins.licensee)
}
android {
@ -38,6 +39,13 @@ baselineProfile {
from(projects.benchmark.dependencyProject)
}
licensee {
allow("Apache-2.0")
allow("MIT")
ignoreDependencies("org.commonmark") { because("Commonmark is BSD licensed") }
allowUrl("https://jsoup.org/license") { because("Jsoup is MIT licensed") }
}
moduleGraphAssert {
assertOnAnyBuild = true
maxHeight = 4

View file

@ -99,6 +99,7 @@ android-test = { id = "com.android.test", version.ref = "agp" }
anvil = "com.squareup.anvil:2.4.7"
baselineprofile = { id = "androidx.baselineprofile", version.ref = "benchmark" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
licensee = "app.cash.licensee:1.7.0"
modulegraph = "dev.iurysouza.modulegraph:0.4.0"
modulegraphassert = "com.jraska.module.graph.assertion:2.4.1"
poko = "dev.drewhamilton.poko:0.14.0"