generated from lost22git/gradle-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (50 loc) · 1.14 KB
/
build.gradle
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
plugins {
alias(libs.plugins.versions)
alias(libs.plugins.version.catalog.update)
alias(libs.plugins.palantir.format)
alias(libs.plugins.spotless)
}
allprojects {
group = "lost.test-helidon-nima"
version = "0.0.1"
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply {
plugin("java")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
dependencies {
// log
implementation(libs.slf4j)
// test
testImplementation(libs.logback)
testImplementation(libs.bundles.junit)
testImplementation(libs.assertj)
testImplementation(libs.awaitility)
testImplementation(libs.easyrandom.core)
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.compilerArgs += [
"-parameters",
// "--enable-preview"
]
}
tasks.withType(JavaExec).configureEach {
// jvmArgs = ["--enable-preview"]
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
// jvmArgs = ["--enable-preview"]
}
}
apply from: "script/gradle/git_hook.gradle"
apply from: "script/gradle/spotless.gradle"
apply from: "script/gradle/version_catalog_update.gradle"