-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
72 lines (62 loc) · 2.5 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
68
69
70
71
72
import plugin.DetektConfigurationPlugin
plugins {
id("org.jetbrains.dokka") version "1.4.32"
}
apply(plugin = "binary-compatibility-validator")
buildscript {
repositories {
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://maven-central-asia.storage-download.googleapis.com/repos/central/data")
mavenCentral()
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.4")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32")
classpath("com.google.protobuf:protobuf-gradle-plugin:0.8.14")
classpath("org.jetbrains.kotlinx:binary-compatibility-validator:0.8.0")
classpath("com.google.dagger:hilt-android-gradle-plugin:2.41")
classpath("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
classpath("io.github.gradle-nexus:publish-plugin:1.1.0")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.4.2")
// for internal artifact
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:4.11.0")
}
}
allprojects {
repositories {
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://maven-central-asia.storage-download.googleapis.com/repos/central/data")
mavenCentral()
google()
jcenter()
}
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(rootDir.resolve("docs/api"))
}
subprojects {
apply<DetektConfigurationPlugin>()
apply(plugin = "org.jetbrains.dokka")
}
val clean by tasks.creating(Delete::class) {
delete(rootProject.buildDir)
delete("${rootDir}/buildSrc/build")
delete("${rootDir}/clickstream/build")
delete("${rootDir}/clickstream-api/build")
delete("${rootDir}/clickstream-logger/build")
delete("${rootDir}/clickstream-lifecycle/build")
delete("${rootDir}/clickstream-util/build")
delete("${rootDir}/clickstream-health-metrics/build")
delete("${rootDir}/clickstream-health-metrics-api/build")
delete("${rootDir}/clickstream-health-metrics-noop/build")
delete("${rootDir}/clickstream-event-listener/build")
delete("${rootDir}/clickstream-event-visualiser/build")
delete("${rootDir}/clickstream-event-visualiser-noop/build")
delete("${rootDir}/clickstream-event-visualiser-ui/build")
delete("${rootDir}/clickstream-event-visualiser-ui-noop/build")
delete("${rootDir}/report")
}
apply(plugin = "io.github.gradle-nexus.publish-plugin")
apply(from = "${rootDir}/scripts/publish-root.gradle")