-
Notifications
You must be signed in to change notification settings - Fork 146
/
build.gradle
86 lines (73 loc) · 3.16 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
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
80
81
82
83
84
85
86
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion" apply false
id("org.jetbrains.kotlin.plugin.allopen") version "$kotlinVersion" apply false
id("com.adarshr.test-logger") version "2.1.0" apply false
id("com.github.ben-manes.versions") version "0.28.0" apply false
id("com.netflix.dgs.codegen") version "4.3.4" apply false
id "com.diffplug.spotless" version "5.10.2" apply false
id 'io.spinnaker.project' version "$spinnakerGradleVersion" apply false
}
allprojects {
group = "io.spinnaker.keel"
apply plugin: 'io.spinnaker.project'
repositories {
if (property("korkVersion").toString().endsWith("-SNAPSHOT")) {
mavenLocal()
}
maven { url = uri("https://netflixoss.jfrog.io/artifactory/maven-oss-candidates") }
mavenCentral()
}
if (name != "keel-bom") {
apply(plugin: "java")
apply(plugin: "java-library")
apply(from: "$rootDir/gradle/kotlin.gradle")
apply(from: "$rootDir/gradle/test.gradle")
apply(plugin: "com.github.ben-manes.versions")
apply(plugin: "com.diffplug.spotless")
dependencies {
annotationProcessor(platform("io.spinnaker.kork:kork-bom:${korkVersion}"))
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation(enforcedPlatform("io.spinnaker.kork:kork-bom:${korkVersion}"))
implementation("org.slf4j:slf4j-api")
testImplementation("org.junit.platform:junit-platform-runner")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("io.mockk:mockk")
testImplementation("org.jacoco:org.jacoco.ant:0.8.5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
}
configurations.all {
exclude(group: "javax.servlet", module: "servlet-api")
exclude(group: "javax.servlet", module: "javax.servlet-api")
exclude(group: "org.slf4j", module: "slf4j-log4j12")
exclude(group: "org.slf4j", module: "slf4j-simple")
resolutionStrategy {
force(
"com.squareup.okhttp3:okhttp:$okHttpVersion",
"com.squareup.okhttp3:okhttp-urlconnection:$okHttpVersion",
"com.squareup.okhttp3:okhttp-sse:$okHttpVersion",
"com.squareup.okhttp3:mockwebserver:$okHttpVersion",
"com.squareup.okhttp3:logging-interceptor:$okHttpVersion",
"io.github.resilience4j:resilience4j-kotlin:$resilience4jVersion",
"io.github.resilience4j:resilience4j-retry:$resilience4jVersion",
"org.testcontainers:mysql:$testContainersVersion",
"de.huxhorn.sulky:de.huxhorn.sulky.ulid:8.2.0",
"io.github.microutils:kotlin-logging:1.4.4",
// needed due to incompatibility with dgs libs
"com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1"
)
}
}
}
tasks.withType(DependencyUpdatesTask) {
revision = "release"
checkConstraints = true
gradleReleaseChannel = "current"
rejectVersionIf {
candidate.version.contains(Regex("-(M|eap|rc|alpha|beta)-?[\\d-]+\$"))
}
}
defaultTasks(":keel-web:run")