Skip to content
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

declare dependencies #14

Merged
merged 1 commit into from
Jul 22, 2020
Merged

declare dependencies #14

merged 1 commit into from
Jul 22, 2020

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Jul 22, 2020

@elharo elharo merged commit 0c87def into master Jul 22, 2020
@elharo elharo deleted the aether branch July 22, 2020 16:18
@slachiewicz
Copy link
Member

Any reason why we need to declare these dependencies? org.eclipse.sisu.plexus is a transitive dependency from maven plugin API
and with each update to minimum maven.version property someone needs to adjust also this one instead of giving Maven chance to do its job.

@elharo
Copy link
Contributor Author

elharo commented Jan 24, 2021

If one specifically imports classes from these dependencies, then they should be declared. Relaying on transitive dependencies is brittle. 5 months later I don't recall exactly which classes are imported from where but mvn dependency:analyze will find anything that's not needed.

@dennisl
Copy link
Contributor

dennisl commented Jan 25, 2021

I agree with @elharo

@slachiewicz
Copy link
Member

thx @dennisl - would you be able to sync the maven version to 3.1.1 as try to confirm that this proposed approach works?

@slachiewicz
Copy link
Member

[INFO] --- maven-dependency-plugin:3.1.1:analyze (default-cli) @ maven-filtering ---
[WARNING] Used undeclared dependencies found:
[WARNING]    org.hamcrest:hamcrest:jar:2.2:test
[WARNING]    org.eclipse.aether:aether-api:jar:0.9.0.M2:compile
[WARNING] Unused declared dependencies found:
[WARNING]    org.hamcrest:hamcrest-core:jar:2.2:test



@slachiewicz
Copy link
Member

With each minimum Maven upgrade, someone needs to review all deps and update the version of aether to match with that will be delivered by Maven installation. No older, no newer.

@slachiewicz
Copy link
Member

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.

3 participants