-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle.kts
81 lines (75 loc) · 2.99 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
73
74
75
76
77
78
79
80
81
plugins {
id(ScriptPlugins.infrastructure)
id("org.ajoberstar.grgit").version("4.1.1")
id("io.github.gradle-nexus.publish-plugin").version("1.1.0")
}
buildscript {
repositories {
google()
mavenCentral()
mavenLocal()
maven(url = "https://plugins.gradle.org/m2/")
maven(url = "https://ajoberstar.org/bintray-backup/")
}
dependencies {
classpath("com.android.tools.build:gradle:${versions.agp}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}")
classpath("org.jfrog.buildinfo:build-info-extractor-gradle:${versions.jfrogBuildInfoExtractor}")
classpath("com.android.tools.build.jetifier:jetifier-processor:${versions.jetifierProcessor}")
classpath("androidx.benchmark:benchmark-gradle-plugin:${versions.benchmarkGradlePlugin}")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokkaGradlePlugin}")
classpath("io.gitlab.arturbosch.detekt" +
":detekt-gradle-plugin:${versions.detekt}")
}
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
configurations.all {
resolutionStrategy {
force ("org.xerial:sqlite-jdbc:3.34.0")
}
}
}
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
}
val clean by tasks.creating(Delete::class) {
delete(rootProject.buildDir)
delete("${rootDir}/buildSrc/build")
delete("${rootDir}/courier/build")
delete("${rootDir}/courier-core/build")
delete("${rootDir}/courier-core-android/build")
delete("${rootDir}/courier-message-adapter-text/build")
delete("${rootDir}/courier-message-adapter-gson/build")
delete("${rootDir}/courier-message-adapter-moshi/build")
delete("${rootDir}/courier-message-adapter-protobuf/build")
delete("${rootDir}/courier-stream-adapter-coroutines/build")
delete("${rootDir}/courier-stream-adapter-rxjava/build")
delete("${rootDir}/courier-stream-adapter-rxjava2/build")
delete("${rootDir}/mqtt-client/build")
delete("${rootDir}/paho/build")
delete("${rootDir}/adaptive-keep-alive/build")
delete("${rootDir}/network-tracker/build")
delete("${rootDir}/chuck-mqtt/build")
delete("${rootDir}/chuck-mqtt-no-ops/build")
delete("${rootDir}/app-state-manager/build")
delete("${rootDir}/courier-auth-http/build")
delete("${rootDir}/pingsender/mqtt-pingsender/build")
delete("${rootDir}/pingsender/workmanager-pingsender/build")
delete("${rootDir}/pingsender/workmanager-2.6.0-pingsender/build")
delete("${rootDir}/pingsender/alarm-pingsender/build")
delete("${rootDir}/pingsender/timer-pingsender/build")
}
apply(from = "${rootDir}/gradle/publish-root.gradle")