Skip to content

Commit 8595ee9

Browse files
committed
Update for PackageCloud publishing over Jitpack
1 parent 4b4f8e7 commit 8595ee9

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

build.gradle

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ test {
124124
jar.dependsOn(copyToLib)
125125

126126
nexusPublishing {
127-
packageGroup = 'com.github.rundeck-plugins'
127+
packageGroup = 'com.rundeck.plugins'
128128
repositories {
129129
sonatype {
130130
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
@@ -135,20 +135,18 @@ nexusPublishing {
135135

136136
apply from: "${rootDir}/gradle/publishing.gradle"
137137

138-
// Add PackageCloud repository after publishing.gradle configures the publication
139-
afterEvaluate {
140-
publishing {
141-
repositories {
142-
maven {
143-
name = "PackageCloudTest"
144-
url = uri("https://packagecloud.io/pagerduty/rundeckpro-test/maven2")
145-
authentication {
146-
header(HttpHeaderAuthentication)
147-
}
148-
credentials(HttpHeaderCredentials) {
149-
name = "Authorization"
150-
value = "Bearer " + (System.getenv("PKGCLD_WRITE_TOKEN") ?: project.findProperty("pkgcldWriteToken"))
151-
}
138+
// Add PackageCloud repository
139+
publishing {
140+
repositories {
141+
maven {
142+
name = "PackageCloudTest"
143+
url = uri("https://packagecloud.io/pagerduty/rundeckpro-test/maven2")
144+
authentication {
145+
header(HttpHeaderAuthentication)
146+
}
147+
credentials(HttpHeaderCredentials) {
148+
name = "Authorization"
149+
value = "Bearer " + (System.getenv("PKGCLD_WRITE_TOKEN") ?: project.findProperty("pkgcldWriteToken"))
152150
}
153151
}
154152
}

0 commit comments

Comments
 (0)