This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
52 lines (45 loc) · 1.53 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
plugins {
java
id("com.github.johnrengelman.shadow") version("7.1.1")
}
repositories {
mavenLocal()
maven("https://repo.unnamed.team/repository/unnamed-public/")
maven("https://maven.enginehub.org/repo/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:22.0.0")
implementation("me.fixeddev:commandflow-brigadier:0.5.0-SNAPSHOT")
implementation("me.yushust.inject:core:0.4.5-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.1")
compileOnly("org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT")
compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.2.8")
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.6")
}
tasks {
shadowJar {
archiveBaseName.set("terrain-housing")
archiveClassifier.set("")
val path = "net.cosmogrp.thousing.libs"
relocate("me.fixeddev", "$path.fixeddev")
relocate("me.yushust", "$path.yushust")
relocate("me.lucko", "$path.lucko")
relocate("net.kyori", "$path.kyori")
relocate("com.mojang", "$path.mojang")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(16))
}
}
processResources {
filesMatching("**/*.yml") {
filter<org.apache.tools.ant.filters.ReplaceTokens>(
"tokens" to mapOf("version" to project.version)
)
}
}
}