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 {