incubator-graphar icon indicating copy to clipboard operation
incubator-graphar copied to clipboard

fix(java): adjust children module version of pom to avoid warning

Open sanyakapoor27 opened this issue 6 months ago • 9 comments

Reason for this PR

As described in #688, this PR is done to remove the maven warnings due to version property which may break future maven builds.

What changes are included in this PR?

Removed the version property from child modules where it can be inherited from the parent and replaced expressions with constants in .

Are these changes tested?

yes, verified maven build after the changes.

Are there any user-facing changes?

no

sanyakapoor27 avatar May 26 '25 20:05 sanyakapoor27

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 95.11%. Comparing base (ba30326) to head (719f7a0). :warning: Report is 21 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #689       +/-   ##
===========================================
+ Coverage   59.94%   95.11%   +35.16%     
===========================================
  Files          65        8       -57     
  Lines        9213      737     -8476     
  Branches      975        0      -975     
===========================================
- Hits         5523      701     -4822     
+ Misses       3690       36     -3654     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov-commenter avatar May 27 '25 06:05 codecov-commenter

Hi @sanyakapoor27, thanks for your commit!

However, I suggest not adding version constants in all child POMs, as this could make maintenance more difficult. It’s better to remove the version tags from child POMs.

yecol avatar May 27 '25 06:05 yecol

Hi @yecol, thanks for the review! I had added the constants to remove the "'version' contains an expression but should be a constant." warning. It looks like that warning might still pop up when expressions are used in child poms, but I definitely understand your concerns about maintenance. I'll make the suggested changes! :)

sanyakapoor27 avatar May 27 '25 08:05 sanyakapoor27

Thanks for the prompt update! However, according to the build log in CI, it seems there’s still a version variable in the root POM of the maven-projects. I believe you’ll also need to change the version in line 32 to the hardcoded value 0.12.0-SNAPSHOT.

yecol avatar May 28 '25 06:05 yecol

Hi @sanyakapoor27 , Ubuntu 20.04 LTS runner has been removed on 2025-04-15(link). I will contribute a PR to fix the error. You can rebase the main branch after the updating of GitHub Action Runner : )

Thespica avatar May 28 '25 10:05 Thespica

@yecol thanks for the review once again! I had previously updated line 32 of the root POM to 0.12.0-SNAPSHOT, but that led to "[FATAL] Non-resolvable parent POM" errors when building the child modules.

This error and the warning mentioned in the issue #688 were gone when the < version> in the child poms also referred to 0.12.0-SNAPSHOT. This can be viewed here: Stack Overflow. In such a case, please let me know what would be the best course of action?

sanyakapoor27 avatar May 28 '25 17:05 sanyakapoor27

@sanyakapoor27 Hi! The Spark CI has been fixed, could you please rerun the CI workflow?

yangxk1 avatar Jul 02 '25 12:07 yangxk1

@sanyakapoor27, do you have time to continue to complete this pr? That has not been updated for too long will be closed

yangxk1 avatar Sep 09 '25 06:09 yangxk1

Hi! @yangxk1 i apologise for not getting back to you sooner due to some unforseen commitments, i will update it by this weekend. thanks a lot!

sanyakapoor27 avatar Sep 11 '25 08:09 sanyakapoor27