feat(IDPLATF-6508): publish to GitHub Packages via Woodpecker#15
Open
rodrigo-rufino wants to merge 3 commits into
Open
feat(IDPLATF-6508): publish to GitHub Packages via Woodpecker#15rodrigo-rufino wants to merge 3 commits into
rodrigo-rufino wants to merge 3 commits into
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
anabcuelbas
previously approved these changes
Jun 19, 2026
…ish pipeline - Migrate plugin from java to java-library; compile/testCompile to api/testImplementation - Update archiveClassifier and checkstyle required flags for Gradle 8 compatibility - Upgrade wrapper to Gradle 8.12 - Remove publish-historical.yml (all historical versions already published to GitHub Packages)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Distributing JARs by committing them to
mvn-repo/and serving via raw GitHub URL breaks when the repo goes private. GitHub Packages (maven.pkg.github.com/quintoandar/repository) is already proxied by Nexus via5a-maven-github-packages, so migrating there removes the dependency on the repo being public without requiring changes in consumer services.Gradle 4.x was also blocking this migration: it does not perform preemptive Basic auth, causing every
./gradlew publishcall to GitHub Packages to fail with 401. Upgrading to Gradle 8.12 resolves this.What
build.gradlepublishing target changed from localmvn-repo/tomaven.pkg.github.com/quintoandar/repository; credentials read from env vars; hardcodedversionremoved from thepublishingblock (injected via-Pversion=by CI)javaplugin replaced byjava-library;compile/testCompilereplaced byapi/testImplementation;archiveClassifiersyntax and checkstylerequiredflags updated for compatibility — no behavioral change for consumers (generated POM retains all deps as<scope>compile</scope>).woodpecker/build.ymladded: runsgradlew checkon push, PR, and tag events.woodpecker/publish.ymladded: triggers on tagjava-jwt@X.Y.Z, depends onbuildpipeline passing firstjavadoc { options.addBooleanOption('html4', true) }block (flag removed in Java 13+)How
publish.ymluses shell parameter expansion${CI_COMMIT_TAG##java-jwt@}to strip the tag prefix and pass the bare version to Gradleapiconfiguration (instead ofimplementation) preserves transitive dependencies as<scope>compile</scope>in the generated POM, maintaining backward compatibility for consumers on Mavenfrom_secret— no secrets in sourceVerification
github_packages_tokensecret is availablejava-jwt@X.Y.Zand confirmbuildthenpublishpipelines run successfullyjava-jwtappears athttps://github.com/orgs/quintoandar/packages