-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.gradle
62 lines (53 loc) · 1.66 KB
/
deploy.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
publishing {
publications {
mavenNotifier(MavenPublication) {
artifactId = ARTIFACT_ID
from components.java
artifact javadocJar
artifact sourcesJar
pom {
name = 'Notifier'
description = "A generic event dispatching library"
url = 'https://github.com/tomtzook/Notifier'
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'tomtzook'
name = 'Tom Tzook'
email = 'tomtzook@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/tomtzook/Notifier.git'
developerConnection = 'scm:git:ssh://github.com/tomtzook/Notifier.git'
url = 'https://github.com/tomtzook/Notifier'
}
}
}
}
repositories {
maven {
if (isReleaseBuild()) {
name = 'NexusStaging'
url = NEXUS_RELEASE_REPOSITORY_URL
} else {
name = 'NexusSnapshot'
url = NEXUS_SNAPSHOT_REPOSITORY_URL
}
credentials {
username getNexusUsername()
password getNexusPassword()
}
}
}
}
if (shouldSign()) {
signing {
sign publishing.publications.mavenNotifier
}
}