Skip to content

Commit 2911e3a

Browse files
authored
Merge pull request #196 from rundeck-plugins/grails7-upgrade
Grails 7 Migration - Rundeck 6.0 Compatibility
2 parents df71c6d + 6d8ca96 commit 2911e3a

5 files changed

Lines changed: 48 additions & 17 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- name: Get Fetch Tags
1515
run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin
1616
if: "!contains(github.ref, 'refs/tags')"
17-
- name: Set up JDK 11
17+
- name: Set up JDK 17
1818
uses: actions/setup-java@v4
1919
with:
20-
java-version: '11'
20+
java-version: '17'
2121
distribution: 'zulu'
2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on:
22
push:
33
# Sequence of patterns matched against refs/tags
44
tags:
5-
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v1.0, v20.15.10
5+
- '*.*.*' # Push events to matching semver tags (no v prefix)
66

77
name: Upload Release Asset
88

@@ -15,10 +15,10 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18-
- name: Set up JDK 11
18+
- name: Set up JDK 17
1919
uses: actions/setup-java@v4
2020
with:
21-
java-version: '11'
21+
java-version: '17'
2222
distribution: 'zulu'
2323
- name: Build with Gradle
2424
run: ./gradlew build

build.gradle

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ext.developers = [
2121
]
2222

2323
java {
24-
sourceCompatibility = JavaVersion.VERSION_11
24+
sourceCompatibility = JavaVersion.VERSION_17
2525
withJavadocJar()
2626
withSourcesJar()
2727
}
@@ -37,9 +37,10 @@ ext.rundeckPluginVersion = '1.1'
3737
scmVersion {
3838
ignoreUncommittedChanges = false
3939
tag {
40-
prefix = 'v'
40+
prefix = '' // NO "v" prefix - see PLUGIN_TAGGING_ARCHITECTURE.md
4141
versionSeparator = ''
4242
}
43+
versionCreator 'simple' // Use simple version creator (just tag name)
4344
}
4445
project.version = scmVersion.version
4546

@@ -54,12 +55,22 @@ configurations{
5455
}
5556
}
5657
repositories {
57-
mavenCentral()
5858
mavenLocal()
59+
maven {
60+
name = 'Central Portal Snapshots'
61+
url = 'https://central.sonatype.com/repository/maven-snapshots/'
62+
content {
63+
includeGroup('org.rundeck')
64+
}
65+
}
66+
mavenCentral()
5967
}
6068
dependencies {
6169
implementation libs.slf4jApi
62-
implementation(libs.rundeckCore) {
70+
compileOnly(libs.rundeckCore) {
71+
exclude group: "com.google.guava"
72+
}
73+
testImplementation(libs.rundeckCore) {
6374
exclude group: "com.google.guava"
6475
}
6576
implementation libs.bundles.awsSdk
@@ -120,6 +131,9 @@ jar {
120131

121132
test {
122133
useJUnitPlatform()
134+
// Java 17 requires these for cglib/Spock mocking
135+
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
136+
'--add-opens', 'java.base/java.util=ALL-UNNAMED'
123137
}
124138
//set jar task to depend on copyToLib
125139
jar.dependsOn(copyToLib)
@@ -134,4 +148,21 @@ nexusPublishing {
134148
}
135149
}
136150

137-
apply from: "${rootDir}/gradle/publishing.gradle"
151+
apply from: "${rootDir}/gradle/publishing.gradle"
152+
153+
// Add PackageCloud repository
154+
publishing {
155+
repositories {
156+
maven {
157+
name = "PackageCloudTest"
158+
url = uri("https://packagecloud.io/pagerduty/rundeckpro-test/maven2")
159+
authentication {
160+
header(HttpHeaderAuthentication)
161+
}
162+
credentials(HttpHeaderCredentials) {
163+
name = "Authorization"
164+
value = "Bearer " + (System.getenv("PKGCLD_WRITE_TOKEN") ?: project.findProperty("pkgcldWriteToken"))
165+
}
166+
}
167+
}
168+
}

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ axionRelease = "1.18.17"
33
awsSdk = "1.12.780"
44
cglib = "3.3.0"
55
commonsBeanutils = "1.11.0"
6-
groovy = "3.0.23"
7-
jacksonDatabind = "2.18.2"
6+
groovy = "4.0.29"
7+
jacksonDatabind = "2.21.2"
88
nexusPublish = "2.0.0"
99
objenesis = "3.4"
10-
rundeckCore = "5.14.0-rc1-20250722"
10+
rundeckCore = "6.0.0-alpha1-20260407"
1111
slf4j = "1.7.36"
12-
spock = "2.3-groovy-3.0"
12+
spock = "2.4-groovy-4.0"
1313
# Security overrides for transitive dependencies
14-
commonsLang3 = "3.18.0"
14+
commonsLang3 = "3.20.0"
1515

1616
[libraries]
1717
slf4jApi = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" }
@@ -21,7 +21,7 @@ awsSdkSts = { group = "com.amazonaws", name = "aws-java-sdk-sts", version.ref =
2121
jacksonDatabind = { group = "com.fasterxml.jackson.core", name = "jackson-databind", version.ref = "jacksonDatabind" }
2222
commonsBeanutils = { group = "commons-beanutils", name = "commons-beanutils", version.ref = "commonsBeanutils" }
2323
awsSdkEc2 = { group = "com.amazonaws", name = "aws-java-sdk-ec2", version.ref = "awsSdk" }
24-
groovyAll = { group = "org.codehaus.groovy", name = "groovy-all", version.ref = "groovy" }
24+
groovyAll = { group = "org.apache.groovy", name = "groovy-all", version.ref = "groovy" }
2525
spockCore = { group = "org.spockframework", name = "spock-core", version.ref = "spock" }
2626
cglibNodep = { group = "cglib", name = "cglib-nodep", version.ref = "cglib" }
2727
objenesis = { group = "org.objenesis", name = "objenesis", version.ref = "objenesis" }

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)