forked from spinnaker/keel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
79 lines (65 loc) · 1.99 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
jcenter()
gradlePluginPortal()
maven(url = "https://spinnaker.bintray.com/gradle")
}
dependencies {
classpath("com.netflix.spinnaker.gradle:spinnaker-dev-plugin:${property("spinnakerGradleVersion")}")
if (property("enablePublishing") == "true") {
classpath("com.netflix.spinnaker.gradle:spinnaker-gradle-project:${property("spinnakerGradleVersion")}")
}
}
}
plugins {
id("nebula.kotlin") version "1.3.50" apply false
id("org.jetbrains.kotlin.plugin.allopen") version "1.3.50" apply false
}
allprojects {
apply(plugin = "spinnaker.base-project")
if (property("enablePublishing") == "true") {
apply(plugin = "spinnaker.project")
}
group = "com.netflix.spinnaker.keel"
}
subprojects {
if (name != "keel-bom") {
apply(plugin = "nebula.kotlin")
repositories {
jcenter()
if (property("korkVersion").toString().endsWith("-SNAPSHOT")) {
mavenLocal()
}
}
dependencies {
"implementation"(platform("com.netflix.spinnaker.kork:kork-bom:${property("korkVersion")}"))
"implementation"("org.slf4j:slf4j-api")
"testImplementation"("org.junit.platform:junit-platform-runner")
"testImplementation"("org.junit.jupiter:junit-jupiter-api")
"testImplementation"("io.mockk:mockk")
"testRuntimeOnly"("org.junit.platform:junit-platform-launcher")
"testRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
languageVersion = "1.3"
jvmTarget = "1.8"
freeCompilerArgs += "-progressive"
}
}
tasks.withType<Test> {
useJUnitPlatform {
includeEngines("junit-jupiter")
}
testLogging {
exceptionFormat = FULL
}
}
}
configurations.all {
exclude("javax.servlet", "servlet-api")
}
}
defaultTasks(":keel-api:run")