mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Properly deploy version into core/bukkit
This commit is contained in:
parent
2dc66964c7
commit
b4e5bc7dbf
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user