mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +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
|
// Version Injection
|
||||||
processResources {
|
processResources {
|
||||||
|
inputs.property('fullVersion', fullVersion)
|
||||||
filter(ReplaceTokens, beginToken: '${',
|
filter(ReplaceTokens, beginToken: '${',
|
||||||
endToken: '}', tokens: ["full.version": fullVersion])
|
endToken: '}', tokens: ["full.version": fullVersion])
|
||||||
}
|
}
|
||||||
@ -136,6 +137,8 @@ def outputTasks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task copyToJars(type: Copy) {
|
task copyToJars(type: Copy) {
|
||||||
|
dependsOn tasks.findByPath(":EssentialsX:processResources")
|
||||||
|
|
||||||
outputTasks().forEach {
|
outputTasks().forEach {
|
||||||
from(it)
|
from(it)
|
||||||
}
|
}
|
||||||
@ -156,5 +159,3 @@ task clean() {
|
|||||||
task build() {
|
task build() {
|
||||||
dependsOn copyToJars
|
dependsOn copyToJars
|
||||||
}
|
}
|
||||||
|
|
||||||
copyToJars.dependsOn tasks.findByPath(":EssentialsX:processResources")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user