-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (41 loc) · 1013 Bytes
/
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
plugins {
id("java")
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
id("org.jetbrains.kotlin.jvm") version "2.0.21"
id("org.jetbrains.intellij") version "1.17.4"
}
group = "com.illuzor.afo"
version = "1.1.1"
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(21)
}
ktlint {
version.set("1.5.0")
}
intellij {
version.set("2021.3.3")
type.set("IC")
updateSinceUntilBuild.set(false)
}
tasks {
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
}
withType<Test>().configureEach {
useJUnitPlatform()
}
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}