diff --git a/build.gradle b/build.gradle index eef2287..62a6639 100644 --- a/build.gradle +++ b/build.gradle @@ -52,6 +52,12 @@ protobuf { generatedFilesBaseDir = "$projectDir/src" } +// The processResources task needs to depend on the generateProto task because it uses the output +// of the the generateProto task +processResources { + dependsOn generateProto +} + task AdminCommand(type: CreateStartScripts) { mainClassName = 'com.scalar.admin.AdminCommand' applicationName = 'scalar-admin' @@ -88,6 +94,14 @@ distTar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } +installDist { + duplicatesStrategy DuplicatesStrategy.EXCLUDE +} + +sourcesJar { + duplicatesStrategy DuplicatesStrategy.EXCLUDE +} + docker { name "${project.name}" files tasks.distTar.outputs