Skip to content

chore: flatten pom, add licences to jar#1951

Merged
toddbaert merged 1 commit into
mainfrom
fix/pom-flattening
Jun 5, 2026
Merged

chore: flatten pom, add licences to jar#1951
toddbaert merged 1 commit into
mainfrom
fix/pom-flattening

Conversation

@toddbaert
Copy link
Copy Markdown
Member

Published pom hygiene improvements, and fix missing licence in jars:

  • use flatten-maven-plugin and maven-resources-plugin
  • removes test/publish deps and build profiles from published pom
  • packages license into jar

* use flatten-maven-plugin and maven-resources-plugin
* removes test/publish deps and build profiles from published pom
* packages license into jar

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert requested review from a team as code owners June 4, 2026 19:21
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request configures the Maven build to flatten the POM deployed to Maven Central and bundle the root LICENSE file into published JARs, as well as marking Lombok and SpotBugs dependencies as optional. A review comment correctly points out that the specified version of maven-resources-plugin (3.5.0) does not exist and will cause build failures, suggesting a downgrade to 3.3.1.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The maven-resources-plugin version 3.5.0 does not exist. The latest stable version of this plugin is 3.3.1. Using a non-existent version will cause the Maven build to fail with a PluginResolutionException when attempting to resolve the plugin. Please downgrade the version to 3.3.1.

Suggested change
<version>3.5.0</version>
<version>3.3.1</version>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.27%. Comparing base (58091f3) to head (cf3e270).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1951      +/-   ##
============================================
+ Coverage     92.27%   93.27%   +1.00%     
- Complexity      653      656       +3     
============================================
  Files            59       59              
  Lines          1592     1592              
  Branches        179      179              
============================================
+ Hits           1469     1485      +16     
+ Misses           76       62      -14     
+ Partials         47       45       -2     
Flag Coverage Δ
unittests 93.27% <ø> (+1.00%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@toddbaert toddbaert merged commit 42418c1 into main Jun 5, 2026
10 checks passed
@toddbaert toddbaert deleted the fix/pom-flattening branch June 5, 2026 13:18
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.

4 participants