fineract icon indicating copy to clipboard operation
fineract copied to clipboard

FINERACT-2625: Dependency cleanup — remove hardcoded versions and unu…

Open SamaSVM opened this issue 5 months ago • 6 comments

Description

Removed duplicate and unused dependencies across multiple modules and replaced hardcoded library versions with centralized dependency management via BOMs

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • [x] Write the commit message as per our guidelines
  • [ ] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • [ ] Create/update unit or integration tests for verifying the changes made.
  • [x] Follow our coding conventions.
  • [ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
  • [x] This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Your assigned reviewer(s) will follow our guidelines for code reviews.

SamaSVM avatar Jun 03 '26 13:06 SamaSVM

The idea is we should have dependencies + version only in dependencies.gradle and org.apache.fineract.dependencies.gradle.

In build.gradle files we should only list the dependencies, but NO versions (those are coming from the above files).

adamsaghy avatar Jun 03 '26 13:06 adamsaghy

Sometimes the versions prevents to use a non Apache License compliance library. How this change prevents it?

@IOhacker It does not address that, however for your question prevention for non compliant library we need to create a new check

Create SBOM via cycloneDX (Dependency is already here in project) and the write a custom script which will then flag category X dependency) hope this helps. As RAT check do not seem to scan external dependencies.

Aman-Mittal avatar Jun 04 '26 10:06 Aman-Mittal

@IOhacker Please rereview.

adamsaghy avatar Jun 22 '26 10:06 adamsaghy

@IOhacker Please re-review.

adamsaghy avatar Jun 26 '26 11:06 adamsaghy

Hi, let me do a testing using this PR El El vie, 26 de jun de 2026 a la(s) 5:07 a.m., Adam Saghy < @.> escribió: … adamsaghy left a comment (apache/fineract#5932) <#5932 (comment)> @IOhacker https://github.com/IOhacker Please re-review. — Reply to this email directly, view it on GitHub <#5932?email_source=notifications&email_token=ALD2ZAWTF4XUKVL4Z7IWWZL5BZKONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBQHA4TOMRUHE32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4808972497>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALD2ZAXIFVREIWSTN5M3KM35BZKONAVCNFSNUABEKJSXA33TNF2G64TZHM2DQNBRHA2TSOJ3JFZXG5LFHM2DKOBQGMZTIMBUGOQXMAQ . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/ALD2ZAUZCSOF54DYTGIATH35BZKONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBQHA4TOMRUHE32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y and Android https://github.com/notifications/mobile/android/ALD2ZARVWSAMJ2TEKRUFWLT5BZKONA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBQHA4TOMRUHE32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you were mentioned.Message ID: @.>

Thank you

adamsaghy avatar Jun 26 '26 13:06 adamsaghy