mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-29 23:27:28 +02:00
Make resource processing update with project version.
Should prevent old version strings from finding their way into plugin.yml
This commit is contained in:
parent
664ab18f00
commit
48233c3327
@ -48,14 +48,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
|
val internalVersion = project.ext["internalVersion"]
|
||||||
|
inputs.property("internalVersion", internalVersion)
|
||||||
filesMatching("plugin.yml") {
|
filesMatching("plugin.yml") {
|
||||||
expand("internalVersion" to project.ext["internalVersion"])
|
expand("internalVersion" to internalVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Jar>("jar") {
|
tasks.named<Jar>("jar") {
|
||||||
|
val projectVersion = project.version
|
||||||
|
inputs.property("projectVersion", projectVersion)
|
||||||
manifest {
|
manifest {
|
||||||
attributes("Implementation-Version" to project.version)
|
attributes("Implementation-Version" to projectVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user