emilymye commented on a change in pull request #13711:
URL: https://github.com/apache/beam/pull/13711#discussion_r554258658



##########
File path: sdks/java/container/common.gradle
##########
@@ -60,8 +59,12 @@ task copySdkHarnessLauncher(type: Copy) {
     into "build/target"
 }
 
-task copyPulledLicenses(type: Copy) {
-    from configurations.pulledLicenses
+task copyJavaThirdPartyLicenses(type: Copy) {
+    dependsOn ':sdks:java:container:pullLicenses'
+    from("${project(':sdks:java:container').buildDir}/build/target") {
+        include 'third_party_licenses/*'
+        include 'java_third_party_licenses/*'

Review comment:
       I'm not sure java_third_party_licenses actually gets used by our 
[Dockerfile](https://github.com/apache/beam/blob/master/sdks/java/container/Dockerfile)
 atm. I'm also not sure if there is a cleaner way to reference the parent 
directory build target. 




----------------------------------------------------------------
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.

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


Reply via email to