-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
build.gradle.kts
52 lines (45 loc) · 1.25 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
plugins {
id("java-library")
id("com.gradleup.shadow") version "8.3.0"
checkstyle
}
subprojects {
plugins.apply("java-library")
plugins.apply("com.gradleup.shadow")
plugins.apply("checkstyle")
repositories {
mavenCentral()
}
dependencies {
testImplementation("com.h2database:h2:2.2.224")
testImplementation("com.zaxxer:HikariCP:5.1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testImplementation("org.mockito:mockito-core:5.12.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.12.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
shadowJar {
archiveClassifier.set("")
archiveFileName.set("TotalEconomy-${project.version}.jar")
minimize {
exclude(project(":totaleconomy-common"))
}
}
jar {
enabled = false
}
build {
dependsOn(shadowJar)
}
test {
useJUnitPlatform()
}
}
}