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

Duplicate buildArgs entry

Open dpizzuto opened this issue 6 years ago • 0 comments

Let's suppose to have the following docker task within the build.gradle:

docker {
	name "${project.group}/${jar.baseName}"
	files jar.archivePath, 'Docker_setup/jdk-8u171-linux-x64.rpm'
	buildArgs([JAR_FILE : "${jar.archiveName}"])
	buildArgs([JDK_FILE : 'jdk-8u171-linux-x64.rpm'])
	noCache true
}

This is clearly an error: duplicating buildArgs entry will result in overwrite of docker build arguments, but I advise to throw an error in cases like this.

dpizzuto avatar Apr 19 '18 10:04 dpizzuto