-
Notifications
You must be signed in to change notification settings - Fork 80
/
build.gradle
118 lines (105 loc) · 2.56 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
plugins {
id 'java'
id 'maven'
id 'idea'
id 'signing'
id 'checkstyle'
id 'jacoco'
id "com.diffplug.gradle.spotless" version "3.4.0"
id 'org.sonarqube' version '2.6'
id 'com.google.protobuf' version '0.8.1'
id "io.codearte.nexus-staging" version "0.8.0"
}
apply from: 'dependencies.gradle'
apply from: 'gradle/quality.gradle'
apply from: 'gradle/protobuf.gradle'
apply from: 'gradle/pyatlas.gradle'
apply from: 'gradle/deployment.gradle'
description = "Atlas Library"
sourceCompatibility=1.8
targetCompatibility=1.8
repositories
{
// For geotools
maven { url "http://download.osgeo.org/webdav/geotools/" }
mavenCentral()
}
configurations
{
shaded
}
dependencies
{
compile packages.slf4j.api
compile packages.junit
compile packages.opencsv
compile packages.gson
compile packages.math
compile packages.http
compile packages.jts
compile packages.geotools
compile packages.osmosis.core
compile packages.osmosis.pbf
compile packages.osmosis.xml
compile packages.osmosis.hstore
compile packages.commons.io
compile packages.commons.cli
compile packages.commons.csv
compile packages.commons.lang
compile packages.fastclasspath
compile packages.guava
compile packages.jsonassert
compile packages.jackson.core
compile packages.jackson.databind
compile packages.protobuf_java
compile packages.protoc
shaded project.configurations.getByName('compile')
shaded packages.slf4j.log4j12
shaded packages.log4j
}
task shaded(type: Jar){
baseName = project.name
classifier = 'shaded'
from
{
configurations.shaded.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'))
}
}
}
}
with jar
zip64 = true
}
/**
* Artifact related items
*/
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts
{
archives javadocJar, sourcesJar
}
/*
* This is to skip the tasks for which there is a skip<TaskName>=true
* environment variable
*/
def skippedTaskNames = System.getenv().findAll { key, value ->
key.startsWith("skip") && value.equalsIgnoreCase("true")
}.keySet().collect { it.substring(4) }
gradle.startParameter.excludedTaskNames += skippedTaskNames
idea {
project {
languageLevel = '1.8'
}
}