-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
158 lines (126 loc) · 5.13 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
plugins {
id "com.jfrog.bintray" version "1.7.3"
id 'com.zyxist.chainsaw' version '0.3.1'
id 'maven'
id 'maven-publish'
id 'java'
id 'idea'
id 'application'
}
group 'onethreeseven'
version '0.0.1-SNAPSHOT'
repositories {
maven { url 'https://github.com/lukehb/137-jars/raw/master/repository' } //for jars not on maven central
maven{url 'https://dl.bintray.com/lukehb/worldwind-bundled'} //for the modified worldwind core
maven{url 'https://dl.bintray.com/lukehb/gdal-fat'} //for gdal fat jar
maven{url 'https://dl.bintray.com/lukehb/137-collections'} //some custom collections we use
maven{url 'https://dl.bintray.com/lukehb/137-datastructures'} //some datastructures we use
maven{url 'https://dl.bintray.com/lukehb/137-common'} //some custom utilities we use
//maven{url 'https://dl.bintray.com/lukehb/137-SPM'} //sequential pattern mining
maven{url 'https://dl.bintray.com/lukehb/137-stopmove'} //stop-move detection
//maven{url 'https://dl.bintray.com/lukehb/137-geo'} //mapping projections mostly
maven{url 'https://clojars.org/repo'} //for jogl and gluegen fat jars
mavenCentral()
mavenLocal()
}
ext.moduleName = 'onethreeseven.trajsuite.core'
javaModule.name = moduleName
mainClassName = 'onethreeseven.trajsuite.core.Main'
//patch out split packages here
javaModule.hacks {
//patches('xerces:xercesImpl', 'jdk.xml.dom')
//patches('log4j:log4j', 'org.slf4j:slf4j.log4j12')
}
//xerces is used by osmosis, however, it has a split package with the jdk "org.w3c.dom.html"
//javaModule.patchModules 'xerces:xercesImpl': 'jdk.xml.dom'
//end patching out
dependencies {
//test
testCompile group: 'junit', name: 'junit', version: '4.11'
////////////////////
//our own modules
////////////////////
//geo
compile group: 'onethreeseven', name: 'geo', version: '0.0.4-SNAPSHOT'
//common
compile (group: 'onethreeseven', name: 'common', version: '0.0.5-SNAPSHOT') {force = true}
//for our custom plugins system
compile (group: 'onethreeseven', name: 'trajsuitePlugin', version: '0.0.1-SNAPSHOT') {force = true}
//clustering
compile (group: 'onethreeseven', name: 'clustering', version: '0.0.1-SNAPSHOT') {force = true}
//rois
compile (group: 'onethreeseven', name: 'roi', version: '0.0.1-SNAPSHOT') {force = true}
//data-structures
compile (group: 'onethreeseven', name: 'datastructures', version: '0.0.4-SNAPSHOT') {force = true}
//stop-move
compile group: 'onethreeseven', name: 'stopmove', version: '0.0.5-SNAPSHOT'
//spm
compile group: 'onethreeseven', name: 'spm', version: '0.0.1-SNAPSHOT'
//simplification
compile group: 'onethreeseven', name: 'simplification', version: '0.0.1-SNAPSHOT'
//jcli
compile group: 'onethreeseven', name: 'jclimod', version: '0.0.1-SNAPSHOT'
//various useful 3rd party libs
compile group: 'com.beust', name: 'jcommander', version: '1.48'
compile group: 'gov.nasa', name: 'ww-core', version: '0.0.4'
//for loading pbf files from OSM
// compile group: 'org.openstreetmap.osmosis', name: 'osmosis-osm-binary', version: '0.46'
// compile group: 'org.openstreetmap.osmosis', name: 'osmosis-areafilter', version: '0.46'
// compile group: 'org.openstreetmap.osmosis', name: 'osmosis-xml', version: '0.46'
// compile group: 'org.openstreetmap.osmosis', name: 'osmosis-pbf2', version: '0.46'
// compile group: 'org.openstreetmap.osmosis', name: 'osmosis-pbf', version: '0.46'
//for java 9 split-package reasons have to patch out xerces
//patch group: 'xerces', name: 'xercesImpl', version: '2.9.1'
//patch group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
//map-matching
//compile(group: 'com.graphhopper', name: 'graphhopper-map-matching-core', version: '0.9.0')
//for geometry
compile group: 'com.vividsolutions', name: 'jts', version: '1.13'
//for four-square api
//compile group: 'me.atlis', name: 'foursquare-api', version: '1.0.6'
}
jar {
inputs.property("moduleName", moduleName)
manifest {
attributes(
'Main-Class': mainClassName,
'Automatic-Module-Name': moduleName,
"Implementation-Title": project.name,
"Implementation-Version": version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'))
}
}
//jar.dependsOn(test)
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc{
options.addStringOption('-module-path', classpath.asPath)
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from 'build/docs/javadoc'
}
def java_home = System.getenv('JAVA_HOME')
task allJars(type: Copy) {
dependsOn build
from configurations.runtime
from jar
from "${java_home}/jmods"
into "${project.projectDir}/executable/libs"
}
artifacts {
archives jar
archives sourcesJar
//archives javadocJar
}
idea {
module {
inheritOutputDirs = true
downloadJavadoc = true
downloadSources = true
}
}