-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (46 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
53
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jlleitschuh.gradle.ktlint.KtlintExtension
val jvmVersion: String by project
val groupName: String by project
val projectVersion: String by project
plugins {
java
kotlin("jvm")
id("org.jlleitschuh.gradle.ktlint")
}
allprojects {
group = groupName
version = projectVersion
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = jvmVersion
}
withType<JavaCompile> {
sourceCompatibility = jvmVersion
targetCompatibility = jvmVersion
}
test {
useJUnitPlatform()
}
}
configure<KtlintExtension> {
debug.set(true)
}
dependencies {
testImplementation("io.kotest:kotest-runner-junit5:5.6.1")
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.mockito:mockito-core:5.14.2")
testImplementation("org.assertj:assertj-core:3.26.3")
implementation("org.slf4j:slf4j-api:2.0.16")
implementation("org.slf4j:slf4j-simple:2.0.16")
}
}