forked from Larry0ua/josm-geojson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (74 loc) · 2.29 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
plugins {
id "de.undercouch.download" version "2.0.0"
}
apply from: 'dependencies.gradle'
apply plugin: 'java'
//apply plugin: 'checkstyle'
//checkstyle {
// toolVersion = "6.0"
//}
group = 'org.openstreetmap.josm.plugins'
version = '0.0.2-SNAPSHOT'
// Change JOSM version (if needed) before you build
project.ext.josm_version='10422'
project.ext.josm_location='download'
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
repositories {
mavenCentral()
flatDir(dirs: file('lib/'))
}
configurations {
provided
}
sourceSets.main.compileClasspath += configurations.provided
dependencies
{
// Josm and required plugins are not on Maven Central
provided ':josm@jar'
provided ':geotools@jar'
provided ':opendata@jar'
compile packages.geojsonjackson
compile packages.jackson.core
compile packages.jackson.databind
compile packages.jackson.annotations
testCompile packages.junit
}
jar
{
from{
configurations.compile.collect
{
it.isDirectory() ? it : zipTree(it).matching{
exclude
{
it.path.contains('META-INF') && (it.path.endsWith('.SF') || it.path.endsWith('.DSA') || it.path.endsWith('.RSA'))
}
}
}
}
manifest
{
attributes("Author": "Ian Dees and matthieun",
"Plugin-Class": "org.openstreetmap.josm.plugins.geojson.GeoJsonPlugin",
"Plugin-Date": "2016-06-20T00:00:00.000000Z",
"Plugin-Description": "Allows you to view a GeoJSON file as a layer.",
"Plugin-Icon": "images/preferences/geojson.png",
"Plugin-Link": "http://wiki.openstreetmap.org/index.php/JOSM/Plugins/GeoJSON",
"Plugin-Mainversion": "10407",
"Plugin-Version": "31246",
"Plugin-Canloadatruntime": "true",
"Plugin-Requires": "opendata",
)
}
}
import de.undercouch.gradle.tasks.download.Download
task josm(type: Download) {
src 'http://josm.openstreetmap.de/' + josm_location + '/josm-snapshot-' + josm_version + '.jar'
dest 'lib/josm.jar'
}
task dependencies(type:Download, dependsOn: 'josm') {
src (['http://svn.openstreetmap.org/applications/editors/josm/dist/opendata.jar',
'http://svn.openstreetmap.org/applications/editors/josm/dist/geotools.jar'])
dest 'lib/'
}