-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
41 lines (37 loc) · 1.04 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(myLibs.plugins.kotlin.jvm) apply false
}
group = "com.ydanneg"
version = "0.0.1-SNAPSHOT"
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
subprojects {
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
javaParameters = true
freeCompilerArgs += "-Xjsr305=strict"
}
}
withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_17.toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
}
withType<Test> {
useJUnitPlatform()
testLogging {
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
events("skipped", "failed")
}
}
}
}