forked from rainbowdashlabs/reputation-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
96 lines (80 loc) · 2.15 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
91
92
93
94
95
96
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
alias(libs.plugins.shadow)
alias(libs.plugins.spotless)
java
`maven-publish`
}
group = "de.chojo"
version = "1.15.0"
repositories {
maven("https://eldonexus.de/repository/maven-public")
maven("https://eldonexus.de/repository/maven-proxies")
maven("https://m2.dv8tion.net/releases")
}
spotless {
java {
licenseHeaderFile(rootProject.file("HEADER.txt"))
target("**/*.java")
}
}
dependencies {
//discord
implementation("de.chojo", "cjda-util", "2.9.3+beta.19") {
exclude(group = "club.minnced", module = "opus-java")
}
// database
implementation("org.postgresql", "postgresql", "42.7.1")
implementation(libs.bundles.sadu)
// Logging
implementation(libs.bundles.log4j)
implementation("de.chojo", "log-util", "1.0.1") {
exclude("org.apache.logging.log4j")
}
implementation("org.knowm.xchart", "xchart", "3.8.7")
// unit testing
testImplementation(platform("org.junit:junit-bom:5.10.1"))
testImplementation("org.junit.jupiter", "junit-jupiter")
testImplementation("org.knowm.xchart", "xchart", "3.8.7")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(19))
}
withSourcesJar()
withJavadocJar()
}
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.repbot.ReputationBot"))
}
}
build {
dependsOn(shadowJar)
}
}