Open karlwettin opened 7 years ago
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?
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.
Did you get what I mean?
Think so. But having a hard time understanding the relation to this plugin. Sounds like an generic gradle issue. Can provide an buildscript?
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 justname-version.jar
. Alternatively prefix file names with something unique.