-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
90 lines (75 loc) · 2.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
id("java")
alias(libs.plugins.spotless)
alias(libs.plugins.shadow)
}
group = "de.chojo"
version = "1.1.2"
repositories {
maven("https://eldonexus.de/repository/maven-public")
maven("https://eldonexus.de/repository/maven-proxies")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
spotless {
java {
licenseHeaderFile(rootProject.file("HEADER.txt"))
target("**/*.java")
}
}
dependencies {
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r")
implementation("de.chojo", "cjda-util", "2.9.5+beta.19") {
exclude(group = "club.minnced", module = "opus-java")
}
// database
implementation("org.postgresql", "postgresql", "42.7.4")
implementation(libs.bundles.sadu)
// Logging
implementation(libs.bundles.log4j)
implementation("de.chojo", "log-util", "1.0.1") {
exclude("org.apache.logging.log4j")
}
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation(kotlin("stdlib-jdk8"))
}
tasks {
processResources {
from(sourceSets.main.get().resources.srcDirs) {
filesMatching("version") {
expand(
"version" to project.version
)
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
compileJava {
options.encoding = "UTF-8"
}
javadoc {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
shadowJar {
transform(Log4j2PluginsCacheFileTransformer::class.java)
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "de.chojo.krile.Krile"))
}
}
build {
dependsOn(spotlessApply)
dependsOn(shadowJar)
}
}