28 lines
873 B
Groovy
28 lines
873 B
Groovy
def wildflyHome = project.hasProperty('wildflyHome') ? project.getProperty('wildflyHome') : (System.getenv('JBOSS_HOME') != null ? System.getenv('JBOSS_HOME').replaceAll('\\\\', '/') : '')
|
|
|
|
ext {
|
|
println wildflyHome
|
|
}
|
|
|
|
configurations {
|
|
deploy
|
|
}
|
|
|
|
dependencies {
|
|
deploy project(path: ":aufgaben-service", configuration: 'archives')
|
|
deploy project(path: ":mail-service", configuration: 'archives')
|
|
deploy project(path: ":registration-service", configuration: 'archives')
|
|
deploy project(path: ":session-service", configuration: 'archives')
|
|
deploy project(path: ":user-service", configuration: 'archives')
|
|
}
|
|
|
|
task clearDeploymentFolder {
|
|
doFirst {
|
|
delete wildflyHome + '/standalone/deployments/'
|
|
}
|
|
}
|
|
|
|
task deploy(dependsOn:['clearDeploymentFolder'], type: Copy) {
|
|
from configurations.deploy
|
|
into wildflyHome + '/standalone/deployments'
|
|
} |