Added doLast to deploy task.
This commit is contained in:
parent
ad6a0e25d8
commit
d02377a491
1 changed files with 5 additions and 3 deletions
|
@ -95,18 +95,20 @@ task copyToDeploy(type: Copy) {
|
|||
}
|
||||
|
||||
task copyToDeployLib(type: Copy) {
|
||||
configurations.runtime
|
||||
from configurations.runtime
|
||||
into deployDir + '/lib'
|
||||
}
|
||||
|
||||
task deploy(dependsOn: ['build', 'copyToDeploy', 'copyToDeployLib']) {
|
||||
task deploy(dependsOn: ['build']) {
|
||||
description = "Copies all needed files to the ${deployDir} directory."
|
||||
group = "Publishing"
|
||||
outputs.dir deployDir
|
||||
inputs.files copyToDeploy
|
||||
inputs.files copyToDeployLib
|
||||
doLast {
|
||||
file(deployDir + '/logs').mkdir()
|
||||
}
|
||||
mustRunAfter clean
|
||||
file(deployDir + '/logs').mkdir()
|
||||
}
|
||||
|
||||
task release(dependsOn: ['deploy', 'wrapper']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue