Properly deploy version into core/bukkit

This commit is contained in:
Octavia Togami 2020-11-02 18:16:23 -08:00
parent 2dc66964c7
commit b4e5bc7dbf
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
2 changed files with 6 additions and 2 deletions

View File

@ -138,8 +138,10 @@
fun Project.addJarManifest(includeClasspath: Boolean = false) {
tasks.named<Jar>("jar") {
val version = project(":worldedit-core").version
inputs.property("version", version)
val attributes = mutableMapOf(
"WorldEdit-Version" to project(":worldedit-core").version
"WorldEdit-Version" to version
)
if (includeClasspath) {
attributes["Class-Path"] = CLASSPATH

View File

@ -36,8 +36,10 @@
}
tasks.named<Copy>("processResources") {
val internalVersion = project.ext["internalVersion"]
inputs.property("internalVersion", internalVersion)
filesMatching("plugin.yml") {
expand("internalVersion" to project.ext["internalVersion"])
expand("internalVersion" to internalVersion)
}
// exclude adapters entirely from this JAR, they should only be in the shadow JAR
exclude("**/worldedit-adapters.jar")