This repository has been archived by the owner on Sep 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (72 loc) · 2.33 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
import org.apache.tools.ant.filters.ReplaceTokens
group 'org.citydb'
version '4.0.0'
apply plugin: 'java'
apply plugin: 'distribution'
apply from: 'properties.gradle'
sourceCompatibility = 1.8
repositories {
maven {
url 'http://download.osgeo.org/webdav/geotools'
}
maven{
url 'https://dl.bintray.com/3dcitydb/maven'
}
maven {
url 'https://maven.imagej.net/content/repositories/thirdparty'
}
jcenter()
}
dependencies {
compile 'org.citydb:impexp-client:4.0.0-PRE-3'
compile fileTree(dir: 'lib', include: '*.jar')
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
into('META-INF') {
from 'resources/license/APACHE-2.0.txt'
from 'resources/license/LICENSE.txt'
}
}
distributions.main.contents {
from jar
from('resources/doc/README.txt') {
filteringCharset = 'UTF-8'
filter(ReplaceTokens, tokens: [
pluginName: project.pluginName,
pluginShortName: project.pluginShortName,
version: project.version,
date: project.date.format('yyyy-MM-dd'),
impexpName: project.impexpName,
impexpVersion: project.impexpVersion,
pkgName: "$project.name-$project.version".toString(),
zipName: "$project.name-$project.version".toString() + '.zip',
citydbName: project.citydbName,
citydbWebsiteUrl: project.citydbWebsiteUrl,
citydbVcsUrl: project.citydbVcsUrl,
pluginUrl: project.pluginUrl,
vendorName: project.vendorName,
vendorOrganisation: project.vendorOrganisation,
vendorCountry: project.vendorCountry,
vendorCopyright: project.vendorCopyright,
vendorWebsiteUrl: project.vendorWebsiteUrl
])
}
into('lib') {
from configurations.compile.copy().exclude(group: 'org.citydb')
}
into('samples') {
from 'samples'
}
into('license') {
from 'resources/license/APACHE-2.0.txt'
from 'resources/license/LICENSE.txt'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.5.1'
}