forked from fkorotkov/intellij-thrift
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
42 lines (35 loc) · 919 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id("java")
id("idea")
}
subprojects {
apply(plugin = "java")
apply(plugin = "idea")
idea {
module {
if (System.getenv("CI").toBoolean()) {
isDownloadSources = true
isDownloadJavadoc = true
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType<JavaCompile>().configureEach {
options.release = JavaLanguageVersion.of(8).asInt()
}
tasks {
test {
useJUnitPlatform()
testLogging {
exceptionFormat = TestExceptionFormat.FULL
events = setOf(TestLogEvent.PASSED, TestLogEvent.SKIPPED, TestLogEvent.FAILED)
}
}
}
}