-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
93 lines (78 loc) · 2.45 KB
/
build.gradle.kts
File metadata and controls
93 lines (78 loc) · 2.45 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
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
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
import org.gradle.api.plugins.quality.Checkstyle
import org.gradle.testing.jacoco.tasks.JacocoReport
plugins {
`java-library`
`maven-publish`
checkstyle
jacoco
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
}
group = "nl.hauntedmc.ailex"
version = "1.1.0"
description = "AIlex"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.citizensnpcs.co/repo")
maven("https://repo.alessiodp.com/releases/")
maven("https://repo.codemc.io/repository/maven-releases/")
}
dependencies {
paperweight.paperDevBundle("1.21.11-R0.1-SNAPSHOT")
implementation("net.kyori:adventure-api:4.26.1")
implementation("net.byteflux:libby-bukkit:1.3.1")
implementation("net.citizensnpcs:citizensapi:2.0.42-SNAPSHOT")
implementation("net.citizensnpcs:citizens-main:2.0.42-SNAPSHOT")
implementation("io.github.classgraph:classgraph:4.8.184")
compileOnly("com.github.retrooper:packetevents-spigot:2.12.1")
testImplementation(platform("org.junit:junit-bom:6.0.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.mockito:mockito-junit-jupiter:5.23.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testImplementation("com.github.retrooper:packetevents-spigot:2.12.1")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
withSourcesJar()
}
checkstyle {
toolVersion = "10.26.1"
configFile = file("config/checkstyle/checkstyle.xml")
isShowViolations = true
}
tasks.processResources {
val props = mapOf("version" to project.version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("paper-plugin.yml") {
expand(props)
}
}
tasks.jar {
archiveFileName.set("AIlex.jar")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
finalizedBy(tasks.jacocoTestReport)
}
tasks.withType<Checkstyle>().configureEach {
reports {
xml.required.set(true)
html.required.set(true)
}
}
tasks.withType<JacocoReport>().configureEach {
reports {
xml.required.set(true)
html.required.set(true)
}
}
tasks.check {
dependsOn(tasks.jacocoTestReport)
}
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.MOJANG_PRODUCTION