Skip to content

Commit

Permalink
chore: Add License Validation (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankpshah authored Sep 1, 2023
1 parent 0ef9fb2 commit 2298d7f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ buildscript {
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.0.0")
classpath("org.gradle:test-retry-gradle-plugin:1.4.1")
classpath("org.jetbrains.kotlinx:kover:0.6.1")
classpath("app.cash.licensee:licensee-gradle-plugin:1.7.0")
}
}

Expand Down Expand Up @@ -77,6 +78,25 @@ subprojects {
android.set(true)
}

apply(plugin = "app.cash.licensee")
configure<app.cash.licensee.LicenseeExtension> {
allow("Apache-2.0")
allow("MIT")
allow("BSD-2-Clause")
allow("CC0-1.0")
allowUrl("https://www.zetetic.net/sqlcipher/license/")
allowUrl("https://developer.android.com/studio/terms.html")
allowDependency("org.jetbrains", "annotations", "16.0.1") {
"Apache-2.0, but typo in license URL fixed in newer versions"
}
allowDependency("org.mockito", "mockito-core", "3.9.0") {
"MIT license"
}
allowDependency("junit", "junit", "4.13.2") {
"Test Dependency"
}
}

afterEvaluate {
configureAndroid()
apply(from = "../kover.gradle")
Expand Down

0 comments on commit 2298d7f

Please sign in to comment.