Skip to content

Conversation

@mirzakaracic
Copy link

@mirzakaracic mirzakaracic commented Nov 12, 2025

This PR adds Maven/Java artifact support to the shared workflows, enabling building, packaging, and deployment of JAR files alongside existing DEB and RPM package support.

  • Adds Java/Maven environment setup configuration to the build workflow
  • Implements JAR metadata extraction and Maven repository structuring
  • Integrates JAR/POM upload functionality into the deployment pipeline

@mirzakaracic mirzakaracic marked this pull request as ready for review November 13, 2025 18:26
@mirzakaracic mirzakaracic self-assigned this Nov 13, 2025
Copy link
Contributor

@arrowplum arrowplum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes themselves look good but they don't do enough to make signing work for java I don't think.

Probably something java specific needs to be added to the reusable_sign and the reusable deploy workflows to make sure the actual signed artifacts get picked up.

image

(from the workflow run in the fluent java) it looks like it is uploading to generic rather than deploying signed artifacts to maven.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Maven/Java artifact support to the shared workflows, enabling building, packaging, and deployment of JAR files alongside existing DEB and RPM package support.

  • Adds Java/Maven environment setup configuration to the build workflow
  • Implements JAR metadata extraction and Maven repository structuring
  • Integrates JAR/POM upload functionality into the deployment pipeline

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
.github/workflows/reusable_execute-build.yaml Adds Java setup inputs (version, distribution, cache) and setup-java action step
.github/workflows/reusable_deploy-artifacts.yaml Cosmetic blank line addition for consistency
.github/workflows/deploy-artifacts/package_utils.sh Adds get_jar_metadata() and process_jar() functions for extracting JAR metadata and organizing artifacts into Maven repository structure
.github/workflows/deploy-artifacts/entrypoint.sh Adds JAR artifact structuring, upload logic with deduplication, and exclusion of JAR/POM files from generic processing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@arrowplum
Copy link
Contributor

I know the tests are horrible. They are failing though with 0 artifacts found so it is something to investigate. I will help. (tests are being rewritten to use an actual test harness)

Updated comment to reflect returned values

Co-authored-by: Copilot <[email protected]>
@mirzakaracic
Copy link
Author

I will address the comments from the copilot. Will spend some time on the tests as well. Thank you @arrowplum

@arrowplum
Copy link
Contributor

Thank you for rebasing in the new testing (using bats). The tests were still broken mostly around test fixtures and nuget upload. This PR (#96 ) addresses these. It is a PR into here rather than into main.

@mirzakaracic
Copy link
Author

@arrowplum I have merged your changes. Thank you very much for the help with tests. I think this is ready to go.

arrowplum
arrowplum previously approved these changes Nov 21, 2025
Copy link
Contributor

@arrowplum arrowplum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we are good 👍

@arrowplum arrowplum changed the title feat: adding maven support feat(workflows): [CLIENT-3877] adding maven support Nov 21, 2025
@arrowplum arrowplum requested a review from Copilot November 21, 2025 22:53
Copilot finished reviewing on behalf of arrowplum November 21, 2025 22:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@arrowplum arrowplum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is wrong with the indention that makes it hard to review. It looks like 8 spaces?

I think the group looks good but please check on this.

Comment on lines +7 to +10
local exit_code=$?
local line_number=$1
echo "Error: Command failed with exit code $exit_code at line $line_number" >&2
exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something off about the whitespace here. Did trunk fmt not catch it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants