-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (49 loc) · 1.78 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
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.7.0" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE" apply false
id("org.springframework.cloud.contract") version "3.1.1" apply false
id("au.com.dius.pact") version "4.3.10" apply false
kotlin("jvm") version "1.6.21" apply false
kotlin("plugin.spring") version "1.6.21" apply false
}
extra["kotlinVersion"] = "1.6.21"
allprojects {
repositories { mavenCentral() }
if (project.childProjects.isEmpty()) {
apply {
plugin("io.spring.dependency-management")
}
the<DependencyManagementExtension>().apply {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:2021.0.2")
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
dependencies {
dependency("com.ninja-squad:springmockk:3.1.1")
dependency("io.mockk:mockk:1.12.4")
}
}
}
tasks {
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
incremental = false
}
}
withType<Test> {
group = "verification"
useJUnitPlatform()
testLogging { events(FAILED, SKIPPED) }
}
}
}