jdaugherty commented on code in PR #14708:
URL: https://github.com/apache/grails-core/pull/14708#discussion_r2072430969


##########
gradle/assemble-config.gradle:
##########
@@ -19,13 +19,14 @@
 
 tasks.register('installToHomeDist').configure { Task task ->
     task.inputs.files(tasks.named('jar'))
-    task.inputs.files(tasks.named('sourcesJar'))
-    task.inputs.files(tasks.named('javadocJar'))
     task.outputs.dir(distInstallDir)
 
     doLast {
         copy {
-            it.from layout.buildDirectory.dir('libs')
+            it.from layout.buildDirectory.dir('libs').map { 
it.asFileTree.matching {

Review Comment:
   I was suggesting this below code.  Callign map will have gradle process all 
of the files, while using exclude will make use of the ant exclude so it will 
exclude as it copies.
   
           copy {
               it.from layout.buildDirectory.dir('libs')
               it.into distInstallDir
               it.exclude '*sources.jar', '*-javadoc.jar'
           }



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