diff --git a/build.gradle b/build.gradle index 24f795c1c..eb2ce67d0 100644 --- a/build.gradle +++ b/build.gradle @@ -123,8 +123,8 @@ docker { name imageName tags 'latest', tagName dockerfile file('Dockerfile') - files bootJar.archivePath - buildArgs(['JAR_FILE': "${bootJar.archiveName}"]) + files bootJar.archiveFile + buildArgs(['JAR_FILE': "${bootJar.archiveFile.get().asFile.name}"]) } dockerPrepare.dependsOn bootJar