-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
59 lines (49 loc) · 1.6 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.20"
id("com.github.johnrengelman.shadow") version "7.1.0"
id("xyz.jpenilla.run-paper") version "2.0.1"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
group = ""
version = "1.0"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.aikar.co/nexus/content/groups/aikar/")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://libraries.minecraft.net")
maven("https://repo.essentialsx.net/snapshots/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation(group = "co.aikar", name = "acf-paper", version = "0.5.1-SNAPSHOT")
compileOnly(group = "com.plotsquared", name = "PlotSquared-Core", version = "6.4.0")
compileOnly(group = "com.plotsquared", name = "PlotSquared-Bukkit", version = "6.4.0")
compileOnly(group = "org.spigotmc", name = "spigot-api", version = "1.18.2-R0.1-SNAPSHOT")
compileOnly(group = "net.essentialsx", name = "EssentialsX", version = "2.20.0-SNAPSHOT")
}
tasks.shadowJar {
relocate("co.aikar.commands", "SusEventer.acf")
relocate("co.aikar.locales", "SusEventer.locales")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "16"
javaParameters = true
}
}
tasks.build {
dependsOn(tasks.shadowJar)
}
tasks {
runServer {
minecraftVersion("1.18.2")
}
}