-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
52 lines (40 loc) · 1.04 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
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
group = "com.kotlin.aws.runtime"
version = "0.1.2"
val jarFileName: String = "${rootProject.name}-$version-all.jar"
plugins {
kotlin("jvm") apply false
id("io.gitlab.arturbosch.detekt") apply true
}
subprojects {
apply {
plugin("io.gitlab.arturbosch.detekt")
}
repositories {
jcenter()
gradlePluginPortal()
}
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = "1.8"
languageVersion = "1.3"
apiVersion = "1.3"
}
}
detekt {
parallel = true
config = rootProject.files("detekt.yml")
reports {
xml {
enabled = false
}
html {
enabled = false
}
}
}
afterEvaluate {
System.setProperty("gradle.publish.key", System.getenv("gradle_publish_key") ?: "")
System.setProperty("gradle.publish.secret", System.getenv("gradle_publish_secret") ?: "")
}
}