Make resource processing depend on version string

This commit is contained in:
MD 2020-11-26 00:38:27 +00:00
parent 35278c6e90
commit 69748fd72e

View File

@ -74,6 +74,7 @@ subprojects {
// Version Injection
processResources {
inputs.property('fullVersion', fullVersion)
filter(ReplaceTokens, beginToken: '${',
endToken: '}', tokens: ["full.version": fullVersion])
}
@ -136,6 +137,8 @@ def outputTasks() {
}
task copyToJars(type: Copy) {
dependsOn tasks.findByPath(":EssentialsX:processResources")
outputTasks().forEach {
from(it)
}
@ -156,5 +159,3 @@ task clean() {
task build() {
dependsOn copyToJars
}
copyToJars.dependsOn tasks.findByPath(":EssentialsX:processResources")