Make resource processing update with project version.

Should prevent old version strings from finding their way into plugin.yml
This commit is contained in:
wizjany 2020-11-03 14:42:39 -05:00
parent 664ab18f00
commit 48233c3327
1 changed files with 6 additions and 2 deletions

View File

@ -48,14 +48,18 @@ tasks.named<Upload>("install") {
}
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)
}
}
tasks.named<Jar>("jar") {
val projectVersion = project.version
inputs.property("projectVersion", projectVersion)
manifest {
attributes("Implementation-Version" to project.version)
attributes("Implementation-Version" to projectVersion)
}
}