mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Read WE version from manifest ourselves
(cherry picked from commit 947775b5e54aa9dd89d68ee0b382939796301902)
This commit is contained in:
@ -120,7 +120,19 @@ fun Project.applyShadowConfiguration() {
|
||||
}
|
||||
}
|
||||
|
||||
val CLASSPATH = listOf("truezip", "truevfs", "js")
|
||||
.map { "$it.jar" }
|
||||
.flatMap { listOf(it, "WorldEdit/$it") }
|
||||
.joinToString(separator = " ")
|
||||
private val CLASSPATH = listOf("truezip", "truevfs", "js")
|
||||
.map { "$it.jar" }
|
||||
.flatMap { listOf(it, "WorldEdit/$it") }
|
||||
.joinToString(separator = " ")
|
||||
|
||||
fun Project.addJarManifest(includeClasspath: Boolean = false) {
|
||||
tasks.named<Jar>("jar") {
|
||||
val attributes = mutableMapOf(
|
||||
"WorldEdit-Version" to project(":worldedit-core").version
|
||||
)
|
||||
if (includeClasspath) {
|
||||
attributes["Class-Path"] = CLASSPATH
|
||||
}
|
||||
manifest.attributes(attributes)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user