-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.7 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apply plugin : "ear"
subprojects {
apply plugin : "java"
repositories {
mavenCentral()
maven { url 'http://repo.gradle.org/gradle/libs-releases-local' }
}
test {
testLogging {
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
}
}
dependencies {
deploy project(path: ':Web', configuration: 'archives')
deploy project(path: ':WebService', configuration: 'archives')
}
ear {
deploymentDescriptor {
applicationName = "NewsBoard"
initializeInOrder = true
webModule("Web.war", "/NewsBoard")
webModule("WebService.war", "/NewsBoard/WebService")
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.bmuschko:gradle-cargo-plugin:2.6"
}
}
repositories {
jcenter()
}
apply plugin: 'com.bmuschko.cargo-base'
dependencies {
cargo 'org.glassfish.main.deployment:deployment-client:5.0'
cargo 'org.codehaus.cargo:cargo-ant:1.6.8'
}
task deploy(dependsOn: ear, type:com.bmuschko.gradle.cargo.tasks.remote.CargoRedeployRemote) {
containerId = 'glassfish5x';
hostname = project.findProperty('host');
username = project.findProperty('user');
password = project.findProperty('pass');
if(project.findProperty('port') != null && project.findProperty('port') != ""){
containerProperties = ['cargo.glassfish.admin.port': project.findProperty('port')];
}
}