-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
55 lines (46 loc) · 1.31 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 org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// issue https://youtrack.jetbrains.com/issue/KTIJ-19370
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
java
`java-library`
signing
`maven-publish`
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.spring)
}
version = Ci.version
dependencies {
implementation(libs.kotlin.reflect)
implementation(libs.kotest.framework.api)
implementation(libs.spring.context)
implementation(libs.spring.test)
implementation(libs.kotlinx.coroutines)
implementation(libs.byteBuddy)
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.kotest.framework.datatest)
testImplementation(libs.kotest.property)
testImplementation(libs.spring.boot.test)
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
showExceptions = true
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots")
}
apply("./publish.gradle.kts")