forked from mapfish/java-geojson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
127 lines (112 loc) · 3.42 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
group = 'org.mapfish.geo'
version = '1.2.0'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'project-report'
defaultTasks 'install'
sourceCompatibility = 1.6
targetCompatibility = 1.6
jar {
baseName = "mapfish-geo-lib"
}
def MAPFISH_REPO='http://dev.mapfish.org/maven/repository'
repositories {
mavenCentral()
mavenRepo url: "http://www.ibiblio.org/maven2"
}
configurations.compile.transitive = true
dependencies {
compile ('org.json:json:20080701', 'com.vividsolutions:jts:1.8')//, 'com.vividsolutions.jts:jtsio:1.8')
testCompile 'junit:junit:4.7'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives jar, javadocJar, sourcesJar
}
/*
* This upload Archives configuration I took from:
* http://jedicoder.blogspot.ch/2011/11/automated-gradle-project-deployment-to.html
*
* For deploying see section about "Create a gradle properties file"
*/
// need to sign jars for uploading releases to maven central
if (Boolean.parseBoolean(enablePublishing)) {
apply plugin: 'signing'
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://$host/service/local/staging/deploy/maven2") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: "https://$host/content/repositories/snapshots") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
uniqueVersion = false
}
pom.project {
packaging 'jar'
name='Mapfish Geojson libraru'
description 'Java library for generating GeoJSON structures'
url 'http://www.mapfish.org/'
scm {
url 'https://github.com/mapfish/java-geojson'
connection 'scm:https://github.com/mapfish/java-geojson.git'
developerConnection 'scm:[email protected]:mapfish/java-geojson.git'
}
licenses {
license {
name 'GNU General Public License'
url 'http://www.gnu.org/licenses/#GPL'
distribution 'repo'
}
}
organization {
name = 'Camptocamp SA'
url = 'http://www.camptocamp.com'
}
developers {
developer {
id 'jesseeichar'
name 'Jesse Eichar'
}
developer {
id 'elemoine'
name 'Eric Lemoine'
}
developer {
id 'fredj'
name 'Frederic Junod'
}
}
mailingLists {
mailingList {
name ='Users'
subscribe='[email protected]'
unsubscribe='[email protected]'
post='[email protected]'
archive='http://www.mapfish.org/pipermail/users/'
}
mailingList {
name ='Dev'
subscribe='[email protected]'
unsubscribe='[email protected]'
post='[email protected]'
archive='http://www.mapfish.org/pipermail/dev/'
}
}
}
}
}
}
}