-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (37 loc) · 1.05 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
kotlin("jvm") version "2.0.20"
id("com.gradleup.shadow") version "8.3.5"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "dev.tarna"
version = "0.4.0"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public")
maven("https://repo.skriptlang.org/releases")
maven("https://repo.destroystokyo.com/repository/maven-public")
maven("https://repo.lunarclient.dev")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
compileOnly("com.github.SkriptLang:Skript:2.9.4")
compileOnly("com.lunarclient:apollo-api:1.1.6")
implementation("org.bstats:bstats-bukkit:3.0.2")
}
kotlin {
jvmToolchain(21)
}
tasks {
shadowJar {
relocate("org.bstats", "dev.tarna.sklunar.bstats")
}
processResources {
filesNotMatching("**/*.png") {
filter<ReplaceTokens>("tokens" to mapOf("version" to project.version))
}
}
runServer {
minecraftVersion("1.21.3")
}
}