-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublishing.gradle
107 lines (95 loc) · 3.13 KB
/
publishing.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
apply plugin: "digital.wup.android-maven-publish"
apply plugin: "signing"
publishing {
publications {
basicJar(MavenPublication) {
switch (POM_PACKAGING) {
case "jar":
from components.java
break
case "aar":
from components.android
break
}
artifact sourcesJar
artifact javadocsJar
pom {
artifactId = POM_ARTIFACT_ID
name = POM_NAME
packaging = POM_PACKAGING
description = POM_DESCRIPTION
url = POM_URL
scm {
connection = POM_SCM_CONNECTION
developerConnection = POM_SCM_DEV_CONNECTION
url = POM_SCM_URL
}
licenses {
license {
name = POM_LICENCE_NAME
url = POM_LICENCE_URL
}
}
developers {
developer {
id = "io7m"
name = "Mark Raynsford"
email = "[email protected]"
url = "https://www.io7m.com"
}
developer {
id = "winniequinn"
name = "Winnie Quinn"
url = "https://www.winniequinn.com/"
}
developer {
id = "gioneill"
name = "Greg O'Neill"
url = "https://github.com/gioneill"
}
developer {
id = "mattniehoff"
name = "Matt Niehoff"
url = "https://github.com/mattniehoff"
}
developer {
id = "MalcolmMcFly"
name = "Malcolm Woods"
url = "https://github.com/MalcolmMcFly"
}
developer {
id = "twaddington"
name = "Tristan Waddington"
url = "https://github.com/twaddington"
}
}
}
}
}
repositories {
if (useDirectoryPublish) {
logger.info("using ${useDirectoryPublishPath} for publication")
maven {
name = "Directory"
url = "file://${useDirectoryPublishPath}"
}
}
if (version.endsWith("-SNAPSHOT")) {
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots/"
name = "SonatypeSnapshots"
credentials(PasswordCredentials) {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
if (!disableSigning) {
apply plugin: "signing"
signing {
useGpgCmd()
sign publishing.publications.basicJar
}
}