-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.gradle
49 lines (46 loc) · 1.76 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
apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
repositories {
maven {
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.toString().endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
publications {
all {
pom {
url = 'https://github.com/xenit-eu/alfresco-actuators'
name = "alfresco-actuators"
description = project.description
scm {
connection = 'scm:git:[email protected]:xenit-eu/alfresco-actuators.git'
developerConnection = 'scm:git:[email protected]:xenit-eu/alfresco-actuators.git'
url = 'https://github.com/xenit-eu/alfresco-actuators.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'
}
}
}
}
}
}
signing {
required { !version.toString().endsWith("SNAPSHOT") }
useInMemoryPgpKeys(findProperty("signingKeyId"), findProperty("signingKey"), findProperty("signingPassword"))
sign publishing.publications
}