-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.gradle
53 lines (46 loc) · 1.77 KB
/
publish.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
apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
publications {
all {
pom {
url = 'https://github.com/xenit-eu/alfresco-zipkin'
name = project.name
description = project.description
scm {
connection = 'scm:git:[email protected]:xenit-eu/alfresco-zipkin.git'
developerConnection = 'scm:git:[email protected]:xenit-eu/alfresco-zipkin.git'
url = 'https://github.com/xenit-eu/alfresco-zipkin.git'
}
developers {
developer {
id = "xenit"
name = "Xenit Solutions NV"
}
}
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.toString().endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.hasProperty('sonatype_username') ? project.sonatype_username : ''
password = project.hasProperty('sonatype_password') ? project.sonatype_password : ''
}
}
}
}
signing {
required { !version.toString().endsWith("SNAPSHOT") }
useInMemoryPgpKeys(findProperty("signingKey"), findProperty("signingPassword"))
sign publishing.publications
}