Skip to content

Could com.influxdb:influxdb-client-test:5.0.0-SNAPSHOT drop off redundant dependencies? #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Celebrate-future
Copy link

@Celebrate-future Celebrate-future commented Mar 29, 2022

Hi! I found the pom file of project com.influxdb:influxdb-client-test:5.0.0-SNAPSHOT introduced 26 dependencies. However, among them, 4 libraries (15%) are not used by your project. I list the redundant dependencies below (labelled as red ones in the figure):

Redundant dependencies

org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.70:compile
org.apiguardian:apiguardian-api:jar:1.1.0:compile
org.junit.platform:junit-platform-suite-api:jar:1.6.2:compile
org.jetbrains:annotations:jar:13.0:compile


Removing the redundant dependencies can reduce the size of project and prevent potential dependency conflict issues (i.e., multiple versions of the same library). More importantly, one of the redundant dependencies org.apiguardian:apiguardian-api:jar:1.1.0:compile induced dependency conflict in the dependency graph. As such, I suggest a refactoring operation for com.influxdb:influxdb-client-test:5.0.0-SNAPSHOT’s pom file.

The attached PR helps resolve the reported problem. It is safe to remove the unused libraries (we considered Java reflection relations when analyzing the dependencies). These changes have passed com.influxdb:influxdb-client-test:5.0.0-SNAPSHOT’s maven tests.

Best regards
image

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • mvn test completes successfully
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

Thanks for your PR 👍
There are a few requirements that must be be satisfy before we accept the PR:

  1. Can you please take a look at the falling checks?
    image

  2. Satisfy our checklist:
    image

@bednar
Copy link
Contributor

bednar commented Apr 5, 2022

Hi @Celebrate-future,

Is this PR still relevant after #298?

Regards

@Celebrate-future
Copy link
Author

Hi @Celebrate-future,

Is this PR still relevant after #298?

Regards

I think so.

@bednar
Copy link
Contributor

bednar commented Apr 6, 2022

@Celebrate-future, can you please rebase sources with master and fix failed checks?

@Celebrate-future
Copy link
Author

@Celebrate,您能否使用主数据库重新定位源并修复失败的检查?

Ok,I will finish it.

@bednar
Copy link
Contributor

bednar commented Jul 17, 2022

This PR has been closed because it has not had recent activity. Please reopen if this PR is still important to you and you want to continue with them.

@bednar bednar closed this Jul 17, 2022
@bednar bednar added invalid This doesn't seem right wontfix This will not be worked on labels Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants