chamikaramj commented on code in PR #41659:
URL: https://github.com/apache/beam/pull/41659#discussion_r4704344337


##########
buildSrc/src/main/groovy/org/apache/beam/gradle/VendorJavaPlugin.groovy:
##########
@@ -156,6 +159,23 @@ artifactId=${project.name}
             if (unexpectedlyExposedClasses.files) {
               throw new GradleException("$it exposed classes outside of 
org.apache.beam namespace: ${unexpectedlyExposedClasses.files}")
             }
+            FileTree leakedMavenMetadata = project.zipTree(it).matching {
+              include "META-INF/maven/**"
+              exclude "META-INF/maven/${project.group}/${project.name}/**"
+            }
+            if (leakedMavenMetadata.files) {
+              throw new GradleException("$it leaked third-party Maven 
descriptors: ${leakedMavenMetadata.files}")
+            }
+            if (project.hasProperty("vendoredDependenciesOnly")) {
+              Set<String> ownMavenFiles = project.zipTree(it).matching {

Review Comment:
   Going with the current standard here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to