Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Use full artifact version during verification #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tinarm
Copy link

@tinarm tinarm commented Nov 27, 2014

This solves a problem when transitive dependencies ends up with the
same name. Before this commit the following dependencies resulted in a
verifcation error:

Main dep:

  • foo-1.0.0.jar

Transitive deps:

  • foo-platform-1.0.0-linux.jar
  • foo-platform-1.0.0-osx.jar
  • foo-platform-1.0.0-windows.jar

In this case the dependencyVerification list had three entries
containing the name 'foo-platform' with different checksums. This
resulted in a conflict during verification.

This commit makes use of all the info that follows the name to find the
exact dependency, e.g. '1.0.0-linux' in this example.

This solves a problem when transitive dependencies ends up with the
same name. Before this commit the following dependencies resulted in a
verifcation error:

Main dep:
 * foo-1.0.0.jar

Transitive deps:
 * foo-platform-1.0.0-linux.jar
 * foo-platform-1.0.0-osx.jar
 * foo-platform-1.0.0-windows.jar

In this case the dependencyVerification list had three entries
containing the name 'foo-platform' with different checksums. This
resulted in a conflict during verification.

This commit makes use of all the info that follows the name to find the
exact dependency, e.g. '1.0.0-linux' in this example.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant