Skip to content

Commit 4b4f8e7

Browse files
committed
Migrate to PackageCloud: restore Axion, change groupId to com.rundeck.plugins
- Changed groupId: com.github.rundeck-plugins → com.rundeck.plugins - Updated Axion with prefix='' (no 'v' prefix) - Removed hardcoded version (0.1.24-grails7-upgrade-test) - Updated nexusPublishing.packageGroup to com.rundeck.plugins - Added PackageCloud publishing configuration - Version now managed dynamically from git tags See: .temp/PLUGIN_TAGGING_ARCHITECTURE.md and PACKAGECLOUD_MIGRATION_PLAN.md
1 parent 287275d commit 4b4f8e7

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

build.gradle

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
alias(libs.plugins.nexusPublish)
77
}
88

9-
group = 'com.github.rundeck-plugins'
9+
group = 'com.rundeck.plugins'
1010
ext.pluginClassNames='com.plugin.sshjplugin.SSHJNodeExecutorPlugin,com.plugin.sshjplugin.SSHJFileCopierPlugin'
1111
ext.pluginName = 'SSHJ Plugin'
1212
ext.pluginDescription = 'SSH Node Executor and File Copier plugin based on SSHJ library.'
@@ -18,21 +18,19 @@ ext.developers = [
1818
]
1919

2020
scmVersion {
21-
ignoreUncommittedChanges = true
21+
ignoreUncommittedChanges = false
2222
tag {
23-
prefix = 'v'
23+
prefix = '' // NO "v" prefix - see PLUGIN_TAGGING_ARCHITECTURE.md
2424
versionSeparator = ''
2525
}
26+
versionCreator 'simple' // Use simple version creator (just tag name)
2627
}
2728

2829
allprojects {
2930
project.version = scmVersion.version
3031
apply from: "${rootDir}/gradle/java.gradle"
3132
}
3233

33-
// Override version for Grails 7 upgrade
34-
project.version = '0.1.24-grails7-upgrade-test'
35-
3634
defaultTasks 'clean','build'
3735

3836
repositories {
@@ -137,3 +135,21 @@ nexusPublishing {
137135

138136
apply from: "${rootDir}/gradle/publishing.gradle"
139137

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+
}
152+
}
153+
}
154+
}
155+
}

0 commit comments

Comments
 (0)