mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-13 06:15:08 +01:00
Make resource processing depend on version string
This commit is contained in:
parent
35278c6e90
commit
69748fd72e
@ -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 New Issue
Block a user