gradle-docker icon indicating copy to clipboard operation
gradle-docker copied to clipboard

dockerfileZip filename by default conflicts with distribution plugin

Open cskrabak opened this issue 8 years ago • 3 comments

Output of dockerfileZip task is called {project name}.zip by default. When docker plugin is used together with "distribution" plugin, they break eachother. The distribution plugin will output its zip file with the same name, which gets overwritten by the dockerfileZip. Workaround is the following build.gradle snippet:

dockerfileZip { baseName 'dockerfile' }

It would be nice though if this would be the default value.

cskrabak avatar Sep 12 '17 11:09 cskrabak

I see, yeah that's reasonable. Want to provide a fix, @cskrabak ?

uschi2000 avatar Sep 13 '17 11:09 uschi2000

+1 here

jomach avatar Nov 22 '17 16:11 jomach

Set archiveClassifier to keep the same name.

aeiplatform avatar Feb 26 '20 10:02 aeiplatform