forked from JOSM/geojson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (46 loc) · 1.38 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
plugins {
id 'org.openstreetmap.josm.gradle.plugin' version '0.1.6'
id 'com.github.ben-manes.versions' version '0.15.0'
}
apply from: 'dependencies.gradle'
apply plugin: 'eclipse'
apply plugin: 'java'
apply from: 'gradle/version-functions.gradle'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
checkstyle {
toolVersion = "8.2"
ignoreFailures = true
}
group = 'org.openstreetmap.josm.plugins'
version = getVersionName()
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()
}
dependencies {
// Transitively required JOSM plugins
requiredPlugin 'org.openstreetmap.josm.plugins:utilsplugin2:'
requiredPlugin 'org.openstreetmap.josm.plugins:apache-commons:'
requiredPlugin 'org.openstreetmap.josm.plugins:ejml:'
requiredPlugin 'org.openstreetmap.josm.plugins:jts:'
// Whenever you change the dependencies of the configuration `packIntoJar`, run `./gradlew updateLibDir` once.
packIntoJar packages.geojsonjackson
packIntoJar packages.jackson.core
packIntoJar packages.jackson.databind
packIntoJar packages.jackson.annotations
testCompile packages.junit
}
// See https://discuss.gradle.org/t/how-to-add-a-single-extra-resource-to-the-existing-resources/17070/2
processResources {
from "LICENSE"
from "README.md"
}
jar {
exclude 'META-INF/**/*'
}
josm {
jarName = "geojson.jar"
josmCompileVersion = 12681
}