-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
63 lines (50 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
53
54
55
56
57
58
59
60
61
62
63
plugins {
id("java")
`maven-publish`
}
group = "net.kissenpvp"
version = "2.1.5-SNAPSHOT"
configurations {
create("includeLib")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
maven("https://repo.kissenpvp.net/snapshots")
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
compileOnly("net.kissenpvp.pulvinar:pulvinar-api:1.21.1-R0.1-SNAPSHOT")
compileOnly("net.kissenpvp:VisualAPI:1.7.3-SNAPSHOT")
}
publishing {
repositories {
maven("https://repo.kissenpvp.net/repository/maven-snapshots/") {
name = "kissenpvp"
credentials(PasswordCredentials::class)
}
}
publications.create<MavenPublication>(project.name) {
artifact("build/libs/${project.name}-${project.version}.jar")
}
}
tasks.processResources {
val props = mapOf("version" to version)
inputs.properties(props)
filteringCharset = "UTF-8"
filesMatching("paper-plugin.yml") {
expand(props)
}
}
tasks.test {
useJUnitPlatform()
}
tasks.test {
useJUnitPlatform()
}