-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 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
plugins {
application
kotlin("jvm")
}
group = "daggerok"
version = "1.0.0-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("reflect"))
implementation(kotlin("stdlib-jdk8"))
implementation(platform("org.springframework.boot:spring-boot-dependencies:2.2.5.RELEASE"))
// implementation("org.springframework:spring-context-support")
// implementation("org.springframework:spring-test")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3")
testImplementation(platform("org.junit:junit-bom:5.6.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.vintage:junit-vintage-engine")
testImplementation("org.assertj:assertj-core:3.15.0")
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showCauses = true
showExceptions = true
showStackTraces = true
showStandardStreams = true
events(
org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED,
org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED,
org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED
)
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
// "-Xcoroutines=enable", // no effect on kotlin >= 1.3, already enabled
"-Xjsr305=strict"
)
jvmTarget = "1.8"
}
}