forked from JetBrains/kotless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
59 lines (47 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
import tanvd.kosogor.defaults.configureIdea
group = "io.kotless"
version = "0.1.7-beta-5"
plugins {
id("tanvd.kosogor") version "1.0.10" apply true
id("io.gitlab.arturbosch.detekt") version ("1.15.0") apply true
kotlin("jvm") version "1.4.21" apply false
}
configureIdea {
exclude += files("examples/.gradle", "examples/gradle", "examples/.idea", "examples/build", "examples/gradlew", "examples/gradlew.bat")
}
subprojects {
apply {
plugin("kotlin")
plugin("tanvd.kosogor")
plugin("io.gitlab.arturbosch.detekt")
}
repositories {
jcenter()
gradlePluginPortal()
}
tasks.withType<KotlinJvmCompile> {
kotlinOptions {
jvmTarget = "1.8"
languageVersion = "1.4"
apiVersion = "1.4"
freeCompilerArgs = freeCompilerArgs + listOf("-Xuse-experimental=kotlin.Experimental")
}
}
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") ?: "")
}
}