forked from coordinates2country/coordinates2country
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (65 loc) · 2.23 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
jcenter()
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
// OSSRH publishing instructions found at https://mrcurious.medium.com/publishing-your-android-kotlin-library-to-maven-central-in-2021-df263a4f2cbc
group = 'io.github.coordinates2country'
version = '1.6'
java {
sourceCompatibility = JavaVersion.VERSION_1_8 // Make the library usable on lower Java versions, see https://github.com/coordinates2country/coordinates2country/issues/5
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'coordinates2country'
from components.java
pom {
name = 'Coordinates2Country'
description = 'Fast offline reverse geocoding'
url = 'https://github.com/coordinates2country/coordinates2country'
licenses {
license {
name = 'Apache-2.0 License'
url = 'https://github.com/coordinates2country/coordinates2country/blob/main/LICENSE'
}
}
developers {
developer {
id = 'Nicolas_Raoul'
name = 'Nicolas Raoul'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/CuriousNikhil/simplepoller.git'
developerConnection = 'scm:git:ssh://github.com/coordinates2country/coordinates2country.git'
url = 'https://github.com/coordinates2country/coordinates2country'
}
}
}
}
repositories {
maven {
credentials {
username = "$NEXUS_USERNAME"
password = "$NEXUS_PASSWORD"
}
name = "Coordinates2Country"
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}
}
signing {
sign publishing.publications.mavenJava
}