-
-
Notifications
You must be signed in to change notification settings - Fork 677
/
Copy pathbuild.gradle.kts
49 lines (43 loc) · 1.38 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
plugins {
`java-library`
id("velocity-checkstyle") apply false
id("velocity-spotless") apply false
alias(libs.plugins.ideaExt)
}
subprojects {
apply<JavaLibraryPlugin>()
apply(plugin = "velocity-checkstyle")
apply(plugin = "velocity-spotless")
apply(plugin = "org.jetbrains.gradle.plugin.idea-ext")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {
testImplementation(rootProject.libs.junit)
}
tasks {
test {
useJUnitPlatform()
reports {
junitXml.required.set(true)
}
}
}
idea {
if (project != null) {
(project as ExtensionAware).extensions["settings"].run {
(this as ExtensionAware).extensions.getByType(org.jetbrains.gradle.ext.ActionDelegationConfig::class).run {
delegateBuildRunToGradle = false
testRunner = org.jetbrains.gradle.ext.ActionDelegationConfig.TestRunner.PLATFORM
}
extensions.getByType(org.jetbrains.gradle.ext.IdeaCompilerConfiguration::class).run {
addNotNullAssertions = false
useReleaseOption = JavaVersion.current().isJava10Compatible
parallelCompilation = true
}
}
}
}
}