-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
62 lines (53 loc) · 1.68 KB
/
build.gradle
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
import io.getstream.log.Dependencies
apply plugin: "com.github.ben-manes.versions"
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'binary-compatibility-validator'
apply plugin: 'org.jetbrains.dokka'
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.androidJunit5GradlePlugin
classpath Dependencies.gitversionerPlugin
classpath Dependencies.gradleVersionsPlugin
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.dokka
classpath Dependencies.kotlinBinaryValidator
classpath Dependencies.spotlessGradlePlugin
classpath Dependencies.detektPlugin
}
}
apiValidation {
ignoredProjects += ["app"]
}
subprojects {
if (it.buildFile.exists()) {
apply from: "${rootDir}/spotless/spotless.gradle"
}
if (it.name != 'app') {
apply plugin: "io.gitlab.arturbosch.detekt"
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.jvmTarget = 1.8
kotlinOptions {
freeCompilerArgs += [
'-progressive',
'-Xexplicit-api=strict',
]
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates {
rejectVersionIf {
Dependencies.isStable(it.currentVersion) && Dependencies.isNonStable(it.candidate.version)
}
}
apply from: "${rootDir}/scripts/publish-root.gradle"