diff --git a/build.gradle b/build.gradle index f720b46bec143..741b14a95dd52 100644 --- a/build.gradle +++ b/build.gradle @@ -67,7 +67,7 @@ apply from: 'gradle/formatting.gradle' apply from: 'gradle/local-distribution.gradle' apply from: 'gradle/fips.gradle' apply from: 'gradle/run.gradle' -apply from: 'gradle/missing-javadoc.gradle' +// apply from: 'gradle/missing-javadoc.gradle' apply from: 'gradle/code-coverage.gradle' // Disable unconditional publishing of build scans diff --git a/libs/core/build.gradle b/libs/core/build.gradle index 31b122d9ede18..632ad14ad9c6a 100644 --- a/libs/core/build.gradle +++ b/libs/core/build.gradle @@ -49,6 +49,13 @@ sourceSets { } +tasks.named("sourcesJar").configure { + // Ignore duplicates for protobuf generated code (main and generatedSources). + filesMatching(["**/proto/*", "**/**/proto/*"]) { + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } +} + dependencies { api project(':libs:opensearch-common') diff --git a/server/build.gradle b/server/build.gradle index 045cf3aed3796..849047085d112 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -428,7 +428,7 @@ tasks.test { tasks.named("sourcesJar").configure { // Ignore duplicates for protobuf generated code (main and generatedSources). - filesMatching("**/proto/*") { + filesMatching(["**/proto/*", "opensearch/proto/services/*"]) { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } }