forked from web-push-libs/webpush-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.gradle
54 lines (51 loc) · 1.6 KB
/
release.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
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'web-push'
description = 'A Web Push library for Java.'
url = 'https://github.com/web-push-libs/webpush-java'
scm {
connection = 'scm:git:[email protected]:web-push-libs/webpush-java.git'
developerConnection = 'scm:git:[email protected]:web-push-libs/webpush-java.git'
url = '[email protected]:web-push-libs/webpush-java.git'
}
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'martijndwars'
name = 'Martijn Dwars'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
credentials {
username ossrhUsername
password ossrhPassword
}
url getRepositoryUrl()
}
}
}
signing {
sign publishing.publications.mavenJava
}
def getRepositoryUrl() {
if (version.endsWith('SNAPSHOT')) {
return 'https://oss.sonatype.org/content/repositories/snapshots/'
} else {
return 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}