-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
40 lines (35 loc) · 986 Bytes
/
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
plugins {
java
id("net.minecrell.plugin-yml.bukkit") version "0.5.3"
}
group = "de.chojo"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://eldonexus.de/repository/maven-proxies/")
}
dependencies {
compileOnly("io.papermc.paper", "paper-api", "1.19.3-R0.1-SNAPSHOT")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.5.2")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.5.2")
}
tasks {
register<Copy>("copyToServer") {
val path = project.property("targetDir") ?: ""
if (path.toString().isEmpty()) {
println("targetDir is not set in gradle properties")
return@register
}
from(jar)
destinationDir = File(path.toString())
}
}
bukkit {
name = "WE-Test"
main = "de.chojo.wetest.Main"
commands {
register("wetest")
}
depend = listOf("WorldEdit")
}