From 1157734aff620d8331deaad5be8dc67d1e49edb2 Mon Sep 17 00:00:00 2001 From: brfrn169 Date: Wed, 18 Sep 2024 16:36:03 +0900 Subject: [PATCH] [addendum] Upgrade Gradle and Gradle plugins (#54) --- build.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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