-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgeotools.groovy
61 lines (55 loc) · 1.25 KB
/
geotools.groovy
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
/**
* Adds a combined geotools bundle and an opengis bundle to the platform.
*/
def geotools(String geotoolsVersion = '10.4', String bundleVersion = '10.4.0.combined',
def modules = [
'gt-api',
'gt-cql',
'gt-epsg-hsql',
'gt-geojson',
'gt-main',
'gt-shapefile'
]) {
repositories {
maven {
url 'http://download.java.net/maven/2'
}
maven {
url 'http://download.osgeo.org/webdav/geotools/'
}
maven {
url 'http://repo.opengeo.org'
}
}
platform {
feature(id: 'platform.geotools', name: 'Geotools Feature', version: geotoolsVersion) {
// opengis
plugin "org.geotools:gt-opengis:${geotoolsVersion}", {
bnd {
symbolicName = 'org.opengis'
}
}
// geotools dependencies
modules.each {
if (it != 'gt-opengis') {
plugin "org.geotools:${it}:${geotoolsVersion}"
}
}
// geotools bundle
merge {
match {
it.group == 'org.geotools' && it.name != 'gt-opengis'
}
bnd {
symbolicName = 'org.geotools'
bundleName = 'Geotools'
version = bundleVersion
instruction 'Export-Package', "org.geotools.*;version=$bundleVersion"
instruction 'Private-Package', '*'
}
}
// geotools depends on log4j
plugin group: 'log4j', name: 'log4j'
}
}
}