Skip to content

Commit 1291292

Browse files
authored
chore: Add build-time dependency license check (#88)
1 parent 8799e27 commit 1291292

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

build.gradle.kts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,59 @@ buildscript {
55
google()
66
mavenCentral()
77
}
8+
dependencies {
9+
classpath("app.cash.licensee:licensee-gradle-plugin:1.7.0")
10+
}
11+
}
12+
13+
subprojects {
14+
apply(plugin = "app.cash.licensee")
15+
configure<app.cash.licensee.LicenseeExtension> {
16+
allow("Apache-2.0")
17+
allow("MIT")
18+
allow("BSD-2-Clause")
19+
allowDependency("org.bouncycastle", "bcprov-jdk15on", "1.70") {
20+
"MIT License"
21+
}
22+
allowDependency("org.ow2.asm", "asm", "9.4") {
23+
"3-Clause BSD License"
24+
}
25+
allowDependency("org.ow2.asm", "asm-analysis", "9.4")
26+
allowDependency("org.ow2.asm", "asm-commons", "9.4")
27+
allowDependency("org.ow2.asm", "asm-tree", "9.4")
28+
allowDependency("org.ow2.asm", "asm-util", "9.4")
29+
allowDependency("com.ibm.icu", "icu4j", "70.1")
30+
allowUrl("http://aws.amazon.com/apache2.0")
31+
allowUrl("https://developer.android.com/studio/terms.html")
32+
33+
ignoreDependencies("javax.annotation", "javax.annotation-api") {
34+
"Transitive dependency for androidx.test.espresso:espresso-core"
35+
}
36+
ignoreDependencies("org.junit", "junit-bom") {
37+
because("Unit Testing Dependency")
38+
}
39+
ignoreDependencies("org.junit", "jupiter") {
40+
because("Unit Testing Dependency")
41+
}
42+
ignoreDependencies("org.junit.jupiter", "junit-jupiter") {
43+
because("Unit Testing Dependency")
44+
}
45+
ignoreDependencies("org.junit.jupiter", "junit-jupiter-params") {
46+
because("Unit Testing Dependency")
47+
}
48+
ignoreDependencies("org.junit", "junit-jupiter-params") {
49+
because("Unit Testing Dependency")
50+
}
51+
ignoreDependencies("org.junit.platform", "junit-platform-commons") {
52+
because("Unit Testing Dependency")
53+
}
54+
ignoreDependencies("org.junit.platform", "junit-platform-engine") {
55+
because("Unit Testing Dependency")
56+
}
57+
ignoreDependencies("junit", "junit") {
58+
because("Unit Testing Dependency")
59+
}
60+
}
861
}
962

1063
// Plugin aliases are a warning in Gradle < 8.1, this suppress can be removed after updating

0 commit comments

Comments
 (0)