-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
97 lines (86 loc) · 2.47 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 'application'
}
group 'org.citygml4j.tools'
version '2.3.2'
description 'Collection of tools for processing CityGML files'
ext {
date = new Date()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
maven {
url 'https://repo.osgeo.org/repository/release'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
dependencies {
implementation 'org.citygml4j:citygml4j-xml:3.2.1'
implementation 'org.citygml4j:citygml4j-cityjson:3.2.1'
implementation 'info.picocli:picocli:4.7.6'
implementation 'org.geotools:gt-epsg-extension:31.2'
implementation 'org.geotools:gt-epsg-hsql:31.2'
implementation 'org.geotools:gt-referencing:31.2'
implementation 'org.apache.commons:commons-imaging:1.0.0-alpha5'
runtimeOnly 'com.fasterxml.woodstox:woodstox-core:7.0.0'
runtimeOnly 'net.sf.saxon:Saxon-HE:12.5'
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
}
processResources {
outputs.upToDateWhen { false }
filteringCharset = 'ISO-8859-1'
filesMatching('**/application.properties') {
filter(ReplaceTokens, tokens: [
name: project.name,
version: project.version
])
}
}
application {
mainClass = 'org.citygml4j.tools.CityGMLTools'
executableDir = ''
startScripts {
doLast {
def windows = getWindowsScript()
def unix = getUnixScript()
windows.text = windows.text.replaceFirst('set APP_HOME=.*', '$0\r\nset WORKING_DIR=%CD%')
unix.text = unix.text.replaceFirst('\nCLASSPATH=.*',
'$0\n\nexport APP_HOME\nexport WORKING_DIR=\\$(pwd -P)')
}
}
}
distributions.main.contents {
from('resources/README') {
filter(ReplaceTokens, tokens: [
name: project.name,
version: project.version,
date: date.format('yyyy-MM-dd'),
copyright: date.format('yyyy'),
javaCompatibility: java.sourceCompatibility.toString()
])
}
into('license') {
from 'LICENSE'
}
into('lib') {
from('resources/logging.properties')
}
from(file("$projectDir/build/tmp/dir")) {
mkdir "$projectDir/build/tmp/dir/extensions"
}
}