From 4ff73d23cc1af73355da86e482362acbb0dd2396 Mon Sep 17 00:00:00 2001 From: Sandeep Nishad Date: Mon, 23 Sep 2024 16:02:22 +0530 Subject: [PATCH] fix(weaver-corda): added duplicate handling strategy in build.gradle Signed-off-by: Sandeep Nishad --- weaver/common/protos-java-kt/build.gradle | 1 - weaver/core/network/corda-interop-app/build.gradle | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/weaver/common/protos-java-kt/build.gradle b/weaver/common/protos-java-kt/build.gradle index d7e20b2950..850949d9ad 100644 --- a/weaver/common/protos-java-kt/build.gradle +++ b/weaver/common/protos-java-kt/build.gradle @@ -76,7 +76,6 @@ dependencies { implementation "io.grpc:grpc-netty-shaded:$grpc_version" implementation "io.grpc:grpc-protobuf:$grpc_version" implementation "io.grpc:grpc-stub:$grpc_version" - implementation 'javax.annotation:javax.annotation-api:1.3.2' compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+ } diff --git a/weaver/core/network/corda-interop-app/build.gradle b/weaver/core/network/corda-interop-app/build.gradle index 628edb536c..593ddfc283 100644 --- a/weaver/core/network/corda-interop-app/build.gradle +++ b/weaver/core/network/corda-interop-app/build.gradle @@ -117,6 +117,10 @@ allprojects { preserveFileTimestamps = false reproducibleFileOrder = true } + + tasks.named('jar') { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } } apply plugin: 'net.corda.plugins.cordapp'