-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (51 loc) · 1.26 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
54
55
56
57
58
59
60
61
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
val junit4Version by extra("4.13.2")
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
plugins {
id("java")
}
allprojects {
repositories {
mavenCentral()
flatDir {
dirs("${rootDir}/libs")
}
}
}
subprojects {
apply(plugin = "java")
version = "1.0"
group = "code"
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
dependencies {
implementation("org.jetbrains:annotations:16.0.2")
testImplementation(group = "junit", name = "junit", version = junit4Version)
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
test {
jvmArgs = listOf(
"-Dfile.encoding=UTF8",
"-Dline.separator=\n", "-ea",
// https://stackoverflow.com/a/54280095/9980245
"-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
)
testLogging.showStandardStreams = true
testLogging.exceptionFormat = TestExceptionFormat.FULL
}
}
}