You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/09/18 09:39:36 UTC

[groovy] branch GROOVY-10242 updated (8797e99 -> 4325fc7)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch GROOVY-10242
in repository https://gitbox.apache.org/repos/asf/groovy.git.


 discard 8797e99  Try to set duplicate handling strategy of Copy task
     new 4325fc7  Try to set duplicate handling strategy of Copy task

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (8797e99)
            \
             N -- N -- N   refs/heads/GROOVY-10242 (4325fc7)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 build.gradle | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

[groovy] 01/01: Try to set duplicate handling strategy of Copy task

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-10242
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 4325fc75113fe0a0ea959bc32ae00a363d536981
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Sep 18 17:24:24 2021 +0800

    Try to set duplicate handling strategy of Copy task
    
    Execution failed for task ':asciidoctor'.
    > Entry assets/css/style.css is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.
---
 build.gradle | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 7507b67..64a3bc5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -181,8 +181,14 @@ configurations {
     }
 }
 
-tasks.withType(AbstractCopyTask).configureEach {
-    it.duplicatesStrategy = DuplicatesStrategy.WARN
+allprojects {
+    tasks.withType(AbstractCopyTask).configureEach {
+        it.duplicatesStrategy = DuplicatesStrategy.WARN
+    }
+
+    tasks.withType(Copy).configureEach {
+        it.duplicatesStrategy = DuplicatesStrategy.WARN
+    }
 }
 
 tasks.named('jar') {