-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlibraries.gradle
More file actions
26 lines (25 loc) · 894 Bytes
/
Copy pathlibraries.gradle
File metadata and controls
26 lines (25 loc) · 894 Bytes
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
ext {
libs = libsMap(
slf4j_api: 'org.slf4j:slf4j-api:1.7.16',
groovy_all: 'org.codehaus.groovy:groovy-all:2.4.6',
groovy: 'org.spockframework:spock-core:1.0-groovy-2.4',
http_builder: 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2',
logback: 'ch.qos.logback:logback-classic:1.1.5',
gpars: "org.codehaus.gpars:gpars:1.2.1"
)
}
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)
}