-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
52 lines (42 loc) · 1.32 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
kotlin("jvm") version "1.6.21"
id("org.jmailen.kotlinter") version "3.10.0"
id("pl.allegro.tech.build.axion-release") version "1.13.7"
id("se.svt.oss.gradle-yapp-publisher") version "0.1.18"
id("se.ascp.gradle.gradle-versions-filter") version "0.1.16"
}
scmVersion.tag.prefix = "release"
scmVersion.tag.versionSeparator = "-"
group = "se.svt.oss"
project.version = scmVersion.version
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
configurations.all {
exclude(module = "junit")
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
api(kotlin("reflect"))
api("org.springframework:spring-context:5.3.20")
implementation("me.alexpanov:free-port-finder:1.1.1")
testImplementation("org.assertj:assertj-core:3.22.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testImplementation("org.springframework:spring-test:5.3.20")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = "7.4.2"
}