Cleanup deploy tasks.
This commit is contained in:
parent
b8539a7295
commit
9a95980e4c
1 changed files with 4 additions and 2 deletions
|
@ -162,11 +162,13 @@ task copyToDeploy(type: Copy) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyToDeployLib(type: Copy) {
|
task copyToDeployLib(type: Copy) {
|
||||||
from configurations.compile
|
from(configurations.runtime) {
|
||||||
|
exclude 'annotations-*.jar'
|
||||||
|
}
|
||||||
into deployDir + '/lib'
|
into deployDir + '/lib'
|
||||||
}
|
}
|
||||||
|
|
||||||
task deploy(dependsOn: ['build', 'jar']) {
|
task deploy(dependsOn: ['clean', 'build', 'jar']) {
|
||||||
description = 'Copies all needed files to the ${deployDir} directory.'
|
description = 'Copies all needed files to the ${deployDir} directory.'
|
||||||
group = 'Publishing'
|
group = 'Publishing'
|
||||||
outputs.dir deployDir
|
outputs.dir deployDir
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue