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

Multiple libraries with different group but the same artifact name and version fails #125

Open
karlwettin opened this issue Oct 13, 2017 · 4 comments

Comments

@karlwettin
Copy link

Adding the the dependency

compile group: 'foo', name: 'api', version: '0.0.1'

will create file image/lib/api-0.0.1.jar

So if I add a second dependency such as

compile group: 'bar', name: 'api', version: '0.0.1'

will also create (overwrite) file image/lib/api-0.0.1.jar

So libs needs to be saved as group-name-version.jar rather than just name-version.jar. Alternatively prefix file names with something unique.

@karlwettin karlwettin changed the title Libraries with different group but the same artifact name and version is not supported Multiple libraries with different group but the same artifact name and version fails Oct 14, 2017
@bjornmagnusson
Copy link
Contributor

I dont´t quite get the actual problem.
What is actually failing?
Do you have an example gradle buildscript which shows and demonstrates the issue?

@karlwettin
Copy link
Author

Away from computer now, but I'll whip up an example for you if this doesn't explain it:

If a project contains multiple dependencies with the same artifact name and version (but different groups) then the docker image will only store one of these jars in /lib since they share the same file name. I.e. jars copied to /lib must also contain the group name.

@karlwettin
Copy link
Author

Did you get what I mean?

@bjornmagnusson
Copy link
Contributor

Think so. But having a hard time understanding the relation to this plugin. Sounds like an generic gradle issue. Can provide an buildscript?

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

No branches or pull requests

2 participants