You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
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.The text was updated successfully, but these errors were encountered: