-
Notifications
You must be signed in to change notification settings - Fork 24
Grails 7 Migration - Rundeck 6.0 Compatibility #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
57e1686
Update README.md
rmeloamaro cdf1556
Update for Grails 7 compatibility
fdevans c3a2141
Fix scmVersion prefix for JitPack compatibility
fdevans 8369d75
Remove scmVersion.version assignment - use only hardcoded version
fdevans 8646695
Remove scmVersion plugin entirely - using only hardcoded version for …
fdevans 1da801e
Bump version to 2.1.5-grails7-upgrade-test to bypass JitPack cache
fdevans 4866c2d
Migrate to PackageCloud: restore Axion, change groupId to com.rundeck…
fdevans 2411f9d
Remove pom.packaging declaration to fix @zip qualifier resolution
fdevans efe7262
Publish with extension=jar (no @zip qualifier) for PackageCloud Maven…
fdevans 1a6adad
Fix plugin.yaml token replacement for py-winrm-plugin
fdevans c6c2cc0
Modernize release workflow for Grails 7
fdevans b0a179d
Update build workflow to Java 17 for Grails 7
fdevans 7c8eeb0
Drop Python 2 support and update Python version requirements
fdevans fc69082
Merge pull request #110 from rmeloamaro/patch-2
fdevans c0fbb1f
Modernize GitHub Actions workflows for Node.js 24 compatibility
fdevans 7b80f0a
Standardize Gradle version to 8.14.3
fdevans e36336e
Fix YAML indentation for distribution parameter
fdevans 6cbbef2
Fix YAML indentation and update Gradle wrapper scripts
fdevans fb1f096
Fix YAML indentation in build.yml
fdevans b7e6fec
Change Python interpreter default to python3 and remove .temp/ build log
fdevans 897f761
Add .temp to .gitignore
fdevans 8eb7872
fixup release process
fdevans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,42 @@ | ||
| on: | ||
| push: | ||
| # Sequence of patterns matched against refs/tags | ||
| tags: | ||
| - '*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
| - '*.*.*' | ||
|
|
||
| name: Create Release | ||
| name: Publish Release | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Upload Release Asset | ||
| name: Publish Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v2 | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: set up JDK 1.8 | ||
| uses: actions/setup-java@v1 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: 1.8 | ||
| java-version: '17' | ||
| distribution: 'zulu' | ||
| - name: Build with Gradle | ||
| run: ./gradlew build | ||
| - name: Get Release Version | ||
| id: get_version | ||
| run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION | ||
| run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | ||
| - name: Create Release | ||
| id: create_release | ||
| uses: actions/create-release@v1.0.0 | ||
| run: | | ||
| gh release create \ | ||
| --generate-notes \ | ||
| --title 'Release ${{ steps.get_version.outputs.VERSION }}' \ | ||
| ${{ github.ref_name }} \ | ||
| build/libs/py-winrm-plugin-${{ steps.get_version.outputs.VERSION }}.zip | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: ${{ github.ref }} | ||
| release_name: Release ${{ steps.get_version.outputs.VERSION }} | ||
| draft: false | ||
| prerelease: false | ||
|
|
||
| - name: Upload Plugin (zip) | ||
| id: upload-release-asset | ||
| uses: actions/upload-release-asset@v1 | ||
| - name: Publish to Maven Central | ||
| run: ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
| asset_path: ./build/libs/py-winrm-plugin-${{ steps.get_version.outputs.VERSION }}.zip | ||
| asset_name: py-winrm-plugin-${{ steps.get_version.outputs.VERSION }}.zip | ||
| asset_content_type: application/zip | ||
|
|
||
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
| SIGNING_KEY_B64: ${{ secrets.SIGNING_KEY_B64 }} | ||
| SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| /** | ||
| * Zip-based Rundeck plugin publication for Maven Central (artifact uploaded as type jar). | ||
| * Requires: ext.publishName, ext.githubSlug, ext.developers; task pluginZip | ||
| */ | ||
| apply plugin: 'maven-publish' | ||
| apply plugin: 'signing' | ||
|
|
||
| publishing { | ||
| publications { | ||
| mavenZip(MavenPublication) { | ||
| groupId = project.group.toString() | ||
| artifactId = 'py-winrm-plugin' | ||
| version = project.version.toString() | ||
|
|
||
| artifact(tasks.named('pluginZip')) { | ||
| extension = 'jar' | ||
| } | ||
|
|
||
| pom { | ||
| packaging = 'jar' | ||
| name = publishName | ||
| description = project.ext.hasProperty('publishDescription') ? project.ext.publishDescription : | ||
| project.description ?: publishName | ||
| url = "https://github.com/${githubSlug}" | ||
| licenses { | ||
| license { | ||
| name = 'The Apache Software License, Version 2.0' | ||
| url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
| distribution = 'repo' | ||
| } | ||
| } | ||
| scm { | ||
| url = "https://github.com/${githubSlug}" | ||
| connection = "scm:git:git@github.com/${githubSlug}.git" | ||
| developerConnection = "scm:git:git@github.com:${githubSlug}.git" | ||
| } | ||
| if (project.ext.developers) { | ||
| developers { | ||
| project.ext.developers.each { dev -> | ||
| developer { | ||
| id = dev.id | ||
| name = dev.name | ||
| email = dev.email | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| repositories { | ||
| def pkgcldWriteToken = System.getenv("PKGCLD_WRITE_TOKEN") ?: project.findProperty("pkgcldWriteToken") | ||
| if (pkgcldWriteToken) { | ||
| maven { | ||
| name = "PackageCloudTest" | ||
| url = uri("https://packagecloud.io/pagerduty/rundeckpro-test/maven2") | ||
| authentication { | ||
| header(HttpHeaderAuthentication) | ||
| } | ||
| credentials(HttpHeaderCredentials) { | ||
| name = "Authorization" | ||
| value = "Bearer " + pkgcldWriteToken | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| def base64Decode = { String prop -> | ||
| project.findProperty(prop) ? | ||
| new String(Base64.getDecoder().decode(project.findProperty(prop).toString())).trim() : | ||
| null | ||
| } | ||
|
|
||
| if (project.hasProperty('signingKey') && project.hasProperty('signingPassword')) { | ||
| signing { | ||
| useInMemoryPgpKeys(base64Decode("signingKey"), project.signingPassword) | ||
| sign(publishing.publications) | ||
| } | ||
| } |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| #Tue Dec 05 14:39:55 CLST 2017 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title/description focuses on a Grails 7 / Rundeck 6 migration, but this repository and the changes shown here are for the Python WinRM plugin (Python/Gradle wrapper, interpreter options, CI). Please update the PR title/description to accurately reflect the scope of this plugin upgrade (Python/Gradle/CI), or add the missing Grails/Rundeck-related changes if they were intended.