-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
57 lines (48 loc) · 1.09 KB
/
build.gradle.kts
File metadata and controls
57 lines (48 loc) · 1.09 KB
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
plugins {
java
alias(libs.plugins.indragit)
alias(libs.plugins.blossom)
alias(libs.plugins.spotless)
alias(libs.plugins.shadow)
}
sourceSets {
main {
blossom {
javaSources {
property("version", version.toString())
if (indraGit.commit().isPresent) {
property("git", indraGit.commit().get().name)
} else {
property("git", "null");
}
}
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
withJavadocJar()
withSourcesJar()
}
tasks {
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
dependencies {
implementation(libs.slf4j)
implementation(libs.slf4j.simple)
testImplementation(libs.testing.juipter)
}
tasks.test {
useJUnitPlatform()
}
extensions.configure<com.diffplug.gradle.spotless.SpotlessExtension> {
java {
removeUnusedImports()
googleJavaFormat()
licenseHeaderFile(rootProject.file("copyright_header.txt"))
}
}