-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (61 loc) · 1.66 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
plugins {
id 'maven-publish'
id 'application'
}
ext {
// dependencies version
ioxIliVersion = '1.20.15'
ioxWkfVersion = '1.0.2'
av2geobauVersion = '1.0.2-SNAPSHOT'
sqliteJdbcVersion = '3.8.11.2'
// dependencies
ioxIliDependency = [ group: 'ch.interlis', name: 'iox-ili', version: ioxIliVersion ]
ioxWkfDependency = [ group: 'ch.interlis', name: 'iox-wkf', version: ioxWkfVersion ]
av2geobauDependency = [ group: 'ch.interlis', name: 'av2geobau', version: av2geobauVersion ]
sqliteJdbcDependency = [ group: 'org.xerial', name: 'sqlite-jdbc', version: sqliteJdbcVersion ]
}
repositories {
maven { url "https://jars.interlis.ch" }
maven { url "https://repo.osgeo.org/repository/release/" }
jcenter()
}
dependencies {
implementation ioxWkfDependency
implementation ioxIliDependency
implementation av2geobauDependency
implementation sqliteJdbcDependency
}
application {
// Define the main class for the application.
mainClassName = 'ch.so.agi.Gpkg2Dxf'
}
// all source files are encoded as UTF-8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes(
'Main-Class': 'ch.so.agi.Gpkg2Dxf',
"Class-Path": configurations.runtimeClasspath.collect { 'libs/'+it.getName() }.join(' ')
)
}
}
task bindist(type: Zip){
baseName = project.name
destinationDir = file('dist')
from jar
into('libs'){
from configurations.runtimeClasspath
}
}
artifacts {
archives(bindist.archivePath) {
type 'zip'
classifier 'bindist'
builtBy bindist
}
archives(jar.archivePath) {
builtBy jar
}
}