mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Make resource processing depend on version string
This commit is contained in:
parent
35278c6e90
commit
69748fd72e
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue