-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (39 loc) · 1.07 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
plugins {
kotlin("jvm") version "1.7.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
implementation("org.bstats:bstats-bukkit:3.0.0")
compileOnly("io.papermc.paper:paper-api:1.19-R0.1-SNAPSHOT")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
processResources {
filesMatching("plugin.yml") {
expand(
"name" to rootProject.name.capitalize(),
"version" to version,
"author" to project.property("author"),
"description" to project.description,
"api" to project.property("api"),
"main" to "${project.group}.${rootProject.name}.${rootProject.name.capitalize()}"
)
}
}
jar {
archiveClassifier.set("noshade")
}
shadowJar {
archiveClassifier.set("")
relocate("org.bstats", "me.laont.sotify")
}
build {
dependsOn(shadowJar)
}
}