forked from neowu/core-ng-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
156 lines (139 loc) · 4.52 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
apply from: file("${rootDir}/gradle/project.gradle")
subprojects {
apply from: file("${rootDir}/gradle/quality.gradle")
group = 'core.framework'
version = '4.5.5'
}
def mongoVersion = '3.2.2'
def elasticVersion = '2.3.1'
def rabbitVersion = '3.6.1'
project(':core-ng-api') {
apply from: file("${rootDir}/gradle/lib.gradle")
}
project(':core-ng') {
apply from: file("${rootDir}/gradle/lib.gradle")
dependencies {
provided(
'redis.clients:jedis:2.8.1@jar',
"org.elasticsearch:elasticsearch:${elasticVersion}@jar",
'com.carrotsearch:hppc:0.7.1@jar', // used by elasticsearch
"org.mongodb:mongo-java-driver:${mongoVersion}",
"com.rabbitmq:amqp-client:${rabbitVersion}"
)
compile(
project(":core-ng-api"),
'javax.inject:javax.inject:1',
'org.javassist:javassist:3.20.0-GA',
'org.slf4j:slf4j-api:1.7.12',
'com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.7.3',
'com.fasterxml.jackson.module:jackson-module-afterburner:2.7.3',
'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.7.3',
'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.7.3',
'org.apache.httpcomponents:httpclient:4.5.2',
'io.undertow:undertow-core:1.3.22.Final'
)
testCompile(
'junit:junit:4.12',
'org.mockito:mockito-core:1.10.19',
'org.hsqldb:hsqldb:2.3.3'
)
}
}
project(':core-ng-test') {
apply from: file("${rootDir}/gradle/lib.gradle")
dependencies {
provided(
"org.mongodb:mongo-java-driver:${mongoVersion}",
'com.github.fakemongo:fongo:2.0.6',
"com.rabbitmq:amqp-client:${rabbitVersion}",
'org.hsqldb:hsqldb:2.3.3',
"org.elasticsearch:elasticsearch:${elasticVersion}",
'org.codehaus.groovy:groovy-all:2.4.4' // for elasticsearch groovy script support
)
compile(
project(":core-ng"),
'junit:junit:4.12',
'org.mockito:mockito-core:1.10.19'
)
}
}
configure(subprojects.findAll { it.name.startsWith('core-ng') }) {
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar {
classifier 'sources'
}
}
}
repositories {
maven {
// put following values in gradle.properties, e.g. systemProp.core-ng.repo.s3.url = s3://xxx
url System.properties['core-ng.repo.s3.url']
credentials(AwsCredentials) {
accessKey System.properties['core-ng.repo.s3.accessKey']
secretKey System.properties['core-ng.repo.s3.secretKey']
}
}
}
}
}
project(':log-processor') {
apply from: file("${rootDir}/gradle/app.gradle")
dependencies {
compile(
project(':core-ng'),
"org.elasticsearch:elasticsearch:${elasticVersion}",
"com.rabbitmq:amqp-client:${rabbitVersion}"
)
testCompile(
project(':core-ng-test')
)
testRuntime(
'org.codehaus.groovy:groovy-all:2.4.4', // for elastic search script test
)
}
}
project(':benchmark') {
dependencies {
compile(
project(':core-ng'),
'org.openjdk.jmh:jmh-generator-annprocess:1.11.3'
)
runtime(
'redis.clients:jedis:2.8.0@jar'
)
}
}
project(':demo-service') {
apply from: file("${rootDir}/gradle/app.gradle")
dependencies {
compile(
project(':core-ng'),
'redis.clients:jedis:2.8.0@jar',
"org.mongodb:mongo-java-driver:${mongoVersion}"
)
runtime(
"com.rabbitmq:amqp-client:${rabbitVersion}"
)
testCompile(
project(':core-ng-test')
)
}
}
project(':demo-site') {
apply from: file("${rootDir}/gradle/app.gradle")
dependencies {
compile(
project(':core-ng')
)
runtime(
"com.rabbitmq:amqp-client:${rabbitVersion}"
)
testCompile(
project(':core-ng-test')
)
}
}