Skip to content

Commit dc52357

Browse files
committed
Migrate to PackageCloud: restore Axion, change groupId to com.rundeck.plugins
- Changed groupId: com.github.rundeck-plugins → com.rundeck.plugins - Restored Axion scmVersion with prefix='' (no 'v' prefix) - Removed hardcoded version override (4.0.16-grails7-upgrade-test) - Added PackageCloud publishing configuration - Version now managed dynamically from git tags See: .temp/PLUGIN_TAGGING_ARCHITECTURE.md and PACKAGECLOUD_MIGRATION_PLAN.md
1 parent 72fa33a commit dc52357

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

build.gradle

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id 'maven-publish'
44
}
55

6-
group = 'com.github.rundeck-plugins'
6+
group = 'com.rundeck.plugins'
77

88
ext.rundeckPluginVersion = '1.2'
99
ext.pluginClassNames = [
@@ -27,14 +27,12 @@ targetCompatibility = 17
2727
scmVersion {
2828
ignoreUncommittedChanges = false
2929
tag {
30-
prefix = 'v'
30+
prefix = '' // NO "v" prefix - see PLUGIN_TAGGING_ARCHITECTURE.md
3131
versionSeparator = ''
3232
}
3333
}
3434

35-
version = scmVersion.version
36-
// Override version for Grails 7 upgrade
37-
version = '4.0.16-grails7-upgrade-test'
35+
version = scmVersion.version // Dynamic version from git tag
3836

3937
repositories {
4038
mavenLocal()
@@ -144,8 +142,24 @@ jar {
144142
publishing {
145143
publications {
146144
maven(MavenPublication) {
145+
groupId = 'com.rundeck.plugins'
147146
artifactId = 'ansible-plugin'
147+
version = project.version
148148
from components.java
149149
}
150150
}
151+
152+
repositories {
153+
maven {
154+
name = "PackageCloudTest"
155+
url = uri("https://packagecloud.io/pagerduty/rundeckpro-test/maven2")
156+
authentication {
157+
header(HttpHeaderAuthentication)
158+
}
159+
credentials(HttpHeaderCredentials) {
160+
name = "Authorization"
161+
value = "Bearer " + (System.getenv("PKGCLD_WRITE_TOKEN") ?: project.findProperty("pkgcldWriteToken"))
162+
}
163+
}
164+
}
151165
}

0 commit comments

Comments
 (0)