Skip to content

chore: drop Gradle dependencies no module source imports - #297

Open
HuiJun wants to merge 1 commit into
developfrom
chore/drop-unused-gradle-dependencies
Open

HuiJun wants to merge 1 commit into
developfrom
chore/drop-unused-gradle-dependencies

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Removes dependency declarations from four modules whose sources never import the dependency's packages.

Module Removed Evidence
permissions implementation project(":data") no org.openmbee.mms.data.* import under permissions/src
permissions implementation 'org.apache.commons:commons-lang3' no org.apache.commons.lang3.* import under permissions/src
storage implementation commonDependencies.'servlet-api' no jakarta.servlet.* import under storage/src
artifacts implementation commonDependencies.'servlet-api' no jakarta.servlet.* import under artifacts/src
core implementation commonDependencies.'servlet-api' no jakarta.servlet.* import under core/src

All five are implementation scope, so they are not on any consumer's compile classpath and removing them does not change what the published modules expose.

Verification

  • ./gradlew compileJava compileTestJava passes for every module.
  • ./gradlew :permissions:test :storage:test :artifacts:test :core:test bootJar passes.

Not verified

  • Runtime classpath of applications built outside this repository: implementation dependencies still appear in the published POM at runtime scope. A downstream app that relied on permissions to pull in commons-lang3 or data at runtime, without declaring them itself, would lose them. The in-repo example app still gets servlet-api through Spring Boot's web starter.

Left in place on purpose

  • data declares api commonDependencies.'spring-security-core' and no source under data/src imports org.springframework.security.*. It is api scope, so removing it would change the compile classpath of anything depending on data; it is not touched here.

Code Reaper opened this PR for Jason
Implemented in session Find and remove dead code in exec-mms
Review with Devin · Open in Devin Desktop


Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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.

1 participant