Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
  • Loading branch information
saratvemulapalli committed Apr 20, 2023
1 parent b71ec29 commit 33e500a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ tasks.named("missingJavadoc").configure {
* Generated code doesn't follow javadocs formats.
* Unfortunately the missingJavadoc task doesnt take *.
* TODO: Add support to missingJavadoc task to ignore all generated source code
* https://github.com/opensearch-project/OpenSearch/issues/7264
*/
dependsOn("generateProto")
javadocMissingIgnore = [
Expand All @@ -370,7 +371,7 @@ tasks.named("licenseHeaders").configure {
excludes << 'org/apache/lucene/search/RegExp87*'
excludes << 'org/apache/lucene/search/RegexpQuery87*'
excludes << 'org/opensearch/client/documentation/placeholder.txt'
// Ignore for generated code
// Ignore for protobuf generated code
excludes << 'org/opensearch/extensions/proto/*'
}

Expand All @@ -379,3 +380,10 @@ tasks.test {
jvmArgs += ["--add-opens", "java.base/java.nio.file=ALL-UNNAMED"]
}
}

tasks.named("sourcesJar").configure {
// Ignore duplicates for protobuf generated code (main and generatedSources).
filesMatching("**/proto/*") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}

0 comments on commit 33e500a

Please sign in to comment.