-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (88 loc) · 2.76 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'distribution'
}
group 'org.citydb.plugins'
version '2.3.0'
apply from: 'properties.gradle'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
maven {
url 'https://repo.osgeo.org/repository/release'
}
maven{
url 'https://3dcitydb.org/maven'
}
mavenCentral()
}
dependencies {
implementation 'org.citydb:impexp-client-gui:5.5.0'
implementation fileTree(dir: 'lib', include: '*.jar')
}
processResources {
filesMatching('**/plugin.xml') {
filteringCharset = 'UTF-8'
filter(ReplaceTokens, tokens: [
name: project.pluginShortName,
version: project.version,
url: project.pluginUrl,
vendor: project.citydbProject,
vendorUrl: project.citydbWebsiteUrl,
citydbName: project.citydbName,
citydbShortName: project.citydbShortName,
testADEUrl: project.testADEUrl
])
}
}
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 'lib'
exclude 'shared'
}
into('samples') {
from 'samples'
}
into('license') {
from 'resources/license/APACHE-2.0.txt'
from 'resources/license/LICENSE.txt'
}
}