-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (39 loc) · 1.06 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
buildscript {
ext {
// Versions can not be used directly in plugin version declaration below so we need to store it to variable like this
kotlin_version = "${Versions.kotlin}"
detekt_version = "${Versions.detekt}"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlin_version" apply false
id "io.gitlab.arturbosch.detekt" version "$detekt_version" apply false
id "io.codearte.nexus-staging" version "0.22.0"
id "org.jetbrains.dokka" version "1.4.32" apply false
}
allprojects {
plugins.apply("org.jetbrains.kotlin.jvm")
repositories {
google()
mavenCentral()
}
apply from: "$rootDir/detekt/detekt.gradle"
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
test {
useJUnitPlatform()
}
}
/**
* Define properties with library info
*/
ext.libProperties = new Properties()
ext.libProperties.load(file("${rootDir}/lib.properties").newReader())