-
Notifications
You must be signed in to change notification settings - Fork 90
/
build.gradle.kts
67 lines (60 loc) · 1.96 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.plugin.android)
classpath(libs.plugin.kotlin)
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${libs.versions.dokka.get()}")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id("mvi-core-collect-sarif")
id("com.autonomousapps.dependency-analysis") version libs.versions.dependencyAnalysis.get()
id("com.google.dagger.hilt.android") version(libs.versions.daggerVersion.get()) apply false
}
dependencyAnalysis {
issues {
all {
onIncorrectConfiguration {
severity("fail")
}
onUnusedDependencies {
severity("fail")
}
}
project(":mvicore-demo:mvicore-demo-app") {
onUnusedDependencies {
severity("fail")
exclude("com.jakewharton.scalpel:scalpel") // Accessed using reflection
// AGP 8.0.2 seems to insist that an app module has these even if there are not tests
exclude("junit:junit")
exclude("androidx.test:runner")
}
}
project(":mvicore-android") {
onUnusedDependencies {
severity("fail")
exclude("androidx.test:runner") // Accessed using reflection
}
}
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
subprojects {
afterEvaluate {
tasks.withType(KotlinJvmCompile::class.java).configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
}
}
}