-
Notifications
You must be signed in to change notification settings - Fork 3
/
libraries.gradle
46 lines (45 loc) · 2 KB
/
libraries.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
ext {
libs = libsMap(
jackson: 'com.fasterxml.jackson.core:jackson-core:2.7.1',
jackson_databind: 'com.fasterxml.jackson.core:jackson-databind:2.7.1-1',
jackson_annotations: 'com.fasterxml.jackson.core:jackson-annotations:2.7.1',
guava: 'com.google.guava:guava:19.0',
spring: [
boot_actuator: 'org.springframework.boot:spring-boot-starter-actuator',
boot_web: 'org.springframework.boot:spring-boot-starter-web',
boot_amqp: 'org.springframework.boot:spring-boot-starter-amqp',
eureka_client: 'org.springframework.cloud:spring-cloud-starter-eureka',
feign: 'org.springframework.cloud:spring-cloud-starter-feign',
cloud_config: 'org.springframework.cloud:spring-cloud-starter-config'
],
test: [
junit: 'junit:junit:4.12',
assertj: 'org.assertj:assertj-core:3.3.0',
mockito: 'org.mockito:mockito-core:2.0.42-beta'
],
jasperreports: dependencies.create('net.sf.jasperreports:jasperreports:6.2.0') {
exclude group: 'org.olap4j', module: 'olap4j'
},
itext: 'com.lowagie:itext:2.1.7',
swift: dependencies.create('com.prowidesoftware:pw-swift-core:SRU2015-7.7') {
exclude group: 'javax.xml', module: 'jaxb-api'
exclude group: 'javax.xml', module: 'jaxb-impl'
},
jaxb: 'javax.xml.bind:jaxb-api:2.2.12'
)
}
def libsMap(Map<String, ?> map) {
def processMap
processMap = { innerMap ->
innerMap.each {
if (it.value instanceof Map) {
innerMap[it.key] = processMap(it.value)
}
}
innerMap.asImmutable().withDefault {
throw new InvalidUserDataException(
"No entry '$it' in dependency map (candidates: ${innerMap.keySet().sort().join(", ")})" )
}
}
processMap(map)
}