forked from acmeair/acmeair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (74 loc) · 2.43 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
}
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compile 'javax:javaee-web-api:7.0'
}
}
project(':acmeair-common') {
}
project(':acmeair-services') {
dependencies {
compile project(':acmeair-common')
compile 'com.googlecode.json-simple:json-simple:1.1.1'
}
}
project(':acmeair-services-wxs') {
dependencies {
compile project(':acmeair-common')
compile project(':acmeair-services')
compile 'com.ibm.websphere.objectgrid:objectgrid:8.6.0.2'
}
}
project(':acmeair-services-morphia') {
dependencies {
compile project(':acmeair-common')
compile project(':acmeair-services')
compile 'org.mongodb:mongo-java-driver:2.13.0'
compile 'org.mongodb.morphia:morphia:0.110'
}
}
project(':acmeair-loader') {
dependencies {
compile project(':acmeair-common')
compile project(':acmeair-services')
}
}
project(':acmeair-webapp') {
apply plugin: 'war'
dependencies {
compile project(':acmeair-common')
compile project(':acmeair-services')
compile project(':acmeair-loader')
def includeService = "ALL"
if (project.hasProperty('service') ) {
println "property service exists and has a value of $service "
includeService = service
} else {
println "property service was not set. Using the default value of $includeService"
println " To pick a specific service set the service property using the -P parameter, for example gradlew -Pservice=wxs build "
}
if ("$includeService".equalsIgnoreCase("morphia") || "$includeService".equalsIgnoreCase("ALL")) {
println "Including mongoDB morphia service "
compile (project(':acmeair-services-morphia')) {
transitive = false
}
compile ('org.mongodb.morphia:morphia:0.110') {
transitive = false
}
}
if ("$includeService".equalsIgnoreCase("wxs") || "$includeService".equalsIgnoreCase("ALL")) {
println "Including WXS service "
compile project(':acmeair-services-wxs')
providedRuntime 'com.ibm.websphere.objectgrid:objectgrid:8.6.0.2'
}
providedRuntime 'javax:javaee-web-api:7.0'
}
}