-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
74 lines (62 loc) · 1.53 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
plugins {
java
alias(libs.plugins.blossom)
alias(libs.plugins.shadow)
alias(libs.plugins.runvelocity)
alias(libs.plugins.idea.ext)
}
repositories {
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
implementation(libs.bstats)
compileOnly(libs.miniplaceholders)
libs.velocity.run {
compileOnly(this)
annotationProcessor(this)
testImplementation(this)
}
testRuntimeOnly(libs.configurate)
testImplementation(platform("org.junit:junit-bom:5.11.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation(libs.assetrj)
testImplementation(libs.slf4j)
testRuntimeOnly(libs.bstats)
testImplementation(libs.mockito)
}
sourceSets {
main {
blossom {
javaSources {
property("version", project.version.toString())
}
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
clean {
delete("run")
}
shadowJar {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
relocate("org.bstats", "io.github._4drian3d.kickredirect.libs.org.bstats")
}
test {
useJUnitPlatform()
testLogging {
events("passed", "failed")
}
}
runVelocity {
velocityVersion(libs.versions.velocity.get())
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))