forked from imintel/mbtiles4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (82 loc) · 2.44 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
apply plugin: 'eclipse'
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2')
}
}
dependencies {
implementation 'org.xerial:sqlite-jdbc:3.8.7'
implementation 'commons-io:commons-io:2.4'
testImplementation 'junit:junit:4.11'
}
group = 'ch.poole.geo'
version = '1.2.0'
sourceCompatibility = '1.7'
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
ext {
repoUrl = 'https://github.com/simonpoole/mbtiles4j.git'
spdxId = 'Apache-2.0'
}
publishing {
publications {
Release(MavenPublication) {
from components.java
groupId group
artifactId 'mbtiles4j'
pom {
name = artifactId
description = 'A pure-java reader/writer for MBTiles'
url = 'https://github.com/simonpoole/mbtiles4j'
scm {
url = repoUrl
}
licenses {
license {
name = spdxId
url = 'https://raw.githubusercontent.com/simonpoole/mbtiles4j/master/LICENSE'
}
}
developers {
developer {
id = 'ckcook'
name = 'Cam Cook'
url ='http://www.github.com/ccook'
}
developer {
name = 'Simon Poole'
}
}
}
repositories {
maven {
name = 'sonatype'
credentials {
username System.getenv('SONATYPE_USER')
password System.getenv('SONATYPE_PASSWORD')
}
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
}
}
signing {
sign publishing.publications.Release
}