Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add License Validation #2579

Merged
merged 2 commits into from
Sep 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading