-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle.kts
49 lines (40 loc) · 1.01 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
@Suppress("DSL_SCOPE_VIOLATION") // Because of IDE bug https://youtrack.jetbrains.com/issue/KTIJ-19370
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.testLogger)
id("org.gradle.jvm-test-suite")
}
repositories {
mavenCentral()
// Konsist artifact can be only retrieved from mavenLocal repository
exclusiveContent {
forRepository {
mavenLocal()
}
filter {
// This repository exclusively provides konsist artifact
includeModule("com.lemonappdev", "konsist")
}
}
}
kotlin {
jvmToolchain(19)
}
tasks.withType<Test> {
useJUnitPlatform()
}
dependencies {
implementation(libs.kotlin.stdlib.jdk8)
}
@Suppress("UnstableApiUsage")
testing {
suites {
register("integrationTest", JvmTestSuite::class) {
dependencies {
implementation(libs.junitJupiterEngine)
implementation(libs.kluent)
implementation(libs.konsist)
}
}
}
}