-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (55 loc) · 1.39 KB
/
build.gradle.kts
File metadata and controls
64 lines (55 loc) · 1.39 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
56
57
58
59
60
61
62
63
64
plugins {
java
jacoco
alias(libs.plugins.shadow)
alias(libs.plugins.publishdata)
}
group = "net.theevilreaper"
version = "0.1.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
dependencies {
implementation(project(":common"))
implementation(platform(libs.mycelium.bom))
implementation(platform(libs.aonyx.bom))
implementation(libs.adventure.minimessage)
compileOnly(libs.aves)
compileOnly(libs.minestom)
testImplementation(libs.cyano)
testImplementation(libs.aves)
testImplementation(libs.minestom)
testImplementation(libs.junit.api)
testImplementation(libs.junit.params)
testImplementation(libs.junit.platform.launcher)
testImplementation(libs.mockito.core)
testImplementation(libs.mockito.junit)
testRuntimeOnly(libs.junit.engine)
}
tasks {
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
}
jacocoTestReport {
dependsOn(rootProject.tasks.test)
reports {
xml.required.set(true)
}
}
test {
jvmArgs("-Dminestom.inside-test=true")
finalizedBy(rootProject.tasks.jacocoTestReport)
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}
publishData {
addBuildData()
useGitlabReposForProject("", "")
publishTask("jar")
}