-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (42 loc) · 1.29 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
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'org.jetbrains.kotlin.jvm' version '1.6.21' apply false
id 'org.jetbrains.dokka' version '1.6.21' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'com.github.ben-manes.versions' version '0.42.0'
}
apply from: "$rootDir/publish.gradle"
subprojects {
pluginManager.withPlugin('org.jetbrains.kotlin.jvm') {
apply from: "$rootDir/kotlin.gradle"
}
pluginManager.withPlugin('maven-publish') {
apply from: "$rootDir/publish.gradle"
}
tasks.withType(GenerateModuleMetadata).configureEach {
enabled = false
}
tasks.withType(Test).configureEach {
testLogging {
events "failed"
exceptionFormat "full"
showCauses true
showExceptions true
showStackTraces true
}
}
}
dependencyUpdates {
def isNonStable = { version ->
['alpha', 'beta', 'dev', 'rc', 'cr', 'm', 'preview', 'b', 'ea', 'eap'].any {
version ==~ /(?i).*[.-]${it}[.\d-+]*.*/
}
}
rejectVersionIf {
isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
}
gradleReleaseChannel = 'current'
}
task clean(type: Delete) {
delete rootProject.buildDir
}