forked from AtlasEngineCa/WorldSeedEntityEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (97 loc) · 3.43 KB
/
build.gradle.kts
File metadata and controls
113 lines (97 loc) · 3.43 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
id("java")
`maven-publish`
signing
id("io.papermc.paperweight.userdev") version "2.0.0-beta.17"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
id("xyz.jpenilla.run-paper") version "2.3.1"
id("io.github.goooler.shadow") version "8.1.5"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
maven("https://repo.erethon.de/snapshots")
}
val papyrusVersion = "1.21.7-R0.1-SNAPSHOT"
publishing {
publications.create<MavenPublication>("maven") {
groupId = "net.worldseed.multipart"
artifactId = "WorldSeedEntityEngine"
version = "12.1"
from(components["java"])
}
repositories {
maven {
name = "WorldSeed"
url = uri("https://reposilite.worldseed.online/public")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
paperweight.devBundle("de.erethon.papyrus", papyrusVersion) { isChanging = true }
implementation("commons-io:commons-io:2.11.0")
implementation("org.zeroturnaround:zt-zip:1.8")
implementation("javax.json:javax.json-api:1.1.4")
implementation("org.glassfish:javax.json:1.1.4")
implementation("dev.hollowcube:mql:1.0.1")
}
tasks.register<Copy>("deployToSharedServer") {
doNotTrackState("")
group = "Erethon"
description = "Used for deploying the plugin to the shared server. runServer will do this automatically." +
"This task is only for manual deployment when running runServer from another plugin."
dependsOn(":plugin:shadowJar")
from(project(":plugin").layout.buildDirectory.file("libs/QuestsXL-$version-all.jar"))
into("C:\\Dev\\Erethon\\plugins")
}
tasks {
shadowJar {
dependencies {
include(dependency("org.zeroturnaround:zt-zip:1.8"))
include(dependency("javax.json:javax.json-api:1.1.4"))
include(dependency("org.glassfish:javax.json:1.1.4"))
include(dependency("dev.hollowcube:mql:1.0.1"))
include(dependency("commons-io:commons-io:2.11.0"))
}
}
runServer {
if (!project.buildDir.exists()) {
project.buildDir.mkdir()
}
val f = File(project.buildDir, "server.jar")
uri("https://github.com/DRE2N/Papyrus/releases/download/latest/papyrus-paperclip-$papyrusVersion-mojmap.jar").toURL().openStream().use { it.copyTo(f.outputStream()) }
serverJar(f)
runDirectory.set(file("C:\\Dev\\Erethon"))
}
bukkit {
name = "Daedalus"
main = "net.worldseed.plugin.DaedalusPlugin"
apiVersion = "1.21"
authors = listOf("Malfrador")
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
commands {
register("daedalus") {
description = "Main command for Daedalus"
aliases = listOf("dd", "dae")
permission = "daedalus.cmd"
usage = "/daedalus <model id>"
}
}
}
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}