Skip to content

Reduce maven publication side by removing fat-jar assembly from regular build - #123

Merged
mialeska merged 1 commit into
masterfrom
reduce-publication-size
Oct 22, 2026
Merged

mialeska merged 1 commit into
masterfrom
reduce-publication-size

Conversation

@mialeska

@mialeska mialeska commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Motivation: Sonatype introduced monthly limits over all organization releases (80 MB total files size), and the single artifact of this build was taking almost 35MB.

@mialeska mialeska self-assigned this Oct 22, 2026
@mialeska mialeska added enhancement New feature or request java dependencies Pull requests that update a dependency file labels Oct 22, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Aquality Core Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b10c8e22-acdf-4564-9e35-5caeefacb007
📥 Commits

Reviewing files that changed from the base of the PR and between 38ea5c7 and cda1845.

📒 Files selected for processing: 1
  • pom.xml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The default Maven build no longer creates a jar-with-dependencies during package. The fatjar profile configures the Assembly Plugin to create it when the profile is active.

Changes

Maven packaging

Layer / File(s) Summary
Move dependency-inclusive JAR creation to the fatjar profile
pom.xml
The default Assembly Plugin execution is removed. The fatjar profile configures the single goal during package to produce a jar-with-dependencies.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to cda18

The optional fat JAR packaging change is mergeable with no identified blocking risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the motivation, but it omits the required Related Issue Link, testing details, and Checklist sections. Add the required sections. Include a link to the related issue, describe the test environment and commands used, and complete each checklist item. State whether documentation or tests require changes and whether all tests passed.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly describes the main change: removing fat-jar assembly from the regular Maven build to reduce publication size. The wording is slightly awkward but remains specific and understandable.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the Maven plan
The default skips the bundled jar
The fatjar profile takes the task
At package time, it builds the jar
Then hops away beneath the stars

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@mialeska
mialeska merged commit 2bf5acb into master Oct 22, 2026
4 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Aquality Core Oct 22, 2026
@mialeska
mialeska deleted the reduce-publication-size branch October 22, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request java

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant