From 8427a0ddbca87e9ba513e07c4bfe34436066e624 Mon Sep 17 00:00:00 2001 From: Kodai Doki Date: Wed, 13 Nov 2024 13:32:16 +0900 Subject: [PATCH] Renamed the delete task --- microservice-transaction-sample/rpc/build.gradle | 8 ++++---- .../rpc/build.gradle | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/microservice-transaction-sample/rpc/build.gradle b/microservice-transaction-sample/rpc/build.gradle index 02dd34f..9b77d63 100644 --- a/microservice-transaction-sample/rpc/build.gradle +++ b/microservice-transaction-sample/rpc/build.gradle @@ -35,8 +35,8 @@ task copyGeneratedProtoToSrc(type: Copy) { duplicatesStrategy = DuplicatesStrategy.INCLUDE } -// Task deleteBuildMainJava deletes the generated .java files in build directory -task deleteBuildMainJava(type: Delete) { +// Task deleteGeneratedProto deletes the generated .java files in build directory +task deleteGeneratedProto(type: Delete) { dependsOn copyGeneratedProtoToSrc delete fileTree(dir: "$buildDir/generated/source/proto/main/java/sample/rpc") } @@ -47,9 +47,9 @@ processResources { dependsOn generateProto } -// Task deleteBuildMainJava needs to depend on deleteBuildMainJava to avoid duplicate class error +// Task deleteGeneratedProto needs to depend on deleteGeneratedProto to avoid duplicate class error tasks.named("compileJava").configure { - dependsOn deleteBuildMainJava + dependsOn deleteGeneratedProto } java { diff --git a/spring-data-microservice-transaction-sample/rpc/build.gradle b/spring-data-microservice-transaction-sample/rpc/build.gradle index 4c6a686..d8a59cc 100644 --- a/spring-data-microservice-transaction-sample/rpc/build.gradle +++ b/spring-data-microservice-transaction-sample/rpc/build.gradle @@ -35,8 +35,8 @@ task copyGeneratedProtoToSrc(type: Copy) { duplicatesStrategy = DuplicatesStrategy.INCLUDE } -// Task deleteBuildMainJava deletes the generated .java files in build directory -task deleteBuildMainJava(type: Delete) { +// Task deleteGeneratedProto deletes the generated .java files in build directory +task deleteGeneratedProto(type: Delete) { dependsOn copyGeneratedProtoToSrc delete fileTree(dir: "$buildDir/generated/source/proto/main/java/sample/rpc") } @@ -47,9 +47,9 @@ processResources { dependsOn generateProto } -// Task deleteBuildMainJava needs to depend on deleteBuildMainJava to avoid duplicate class error +// Task deleteGeneratedProto needs to depend on deleteGeneratedProto to avoid duplicate class error tasks.named("compileJava").configure { - dependsOn deleteBuildMainJava + dependsOn deleteGeneratedProto } java {