Skip to content

Log warnings for duplicates in the final JAR#1931

Merged
Goooler merged 3 commits intomainfrom
copilot/warn-users-on-duplicates
Feb 27, 2026
Merged

Log warnings for duplicates in the final JAR#1931
Goooler merged 3 commits intomainfrom
copilot/warn-users-on-duplicates

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

Duplicate entries detected by checkDuplicateEntries were silently logged at info level, making them invisible in standard Gradle output unless --info was explicitly passed.

Changes

  • ShadowCopyAction.kt: Promote duplicate-entry log message from logger.infologger.warn, so it surfaces in default Gradle output when failOnDuplicateEntries = false
  • JavaPluginsTest.kt: Remove --info flag from failBuildIfDuplicateEntries and failBuildIfDuplicateEntriesByCliOption tests — no longer needed since warn is visible at default log level

  • CHANGELOG's "Unreleased" section has been updated, if applicable.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx4g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant (dns block)
  • scans-in.gradle.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED -Xmx4g -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Goooler <10363352+Goooler@users.noreply.github.com>
Copilot AI changed the title [WIP] Warn users on duplicate entries in checkDuplicateEntries Warn users if duplicates found in checkDuplicateEntries Feb 27, 2026
@Goooler Goooler marked this pull request as ready for review February 27, 2026 01:57
Added a note about logging warnings for duplicates in the final JAR.
@Goooler Goooler changed the title Warn users if duplicates found in checkDuplicateEntries Log warnings for duplicates in the final JAR Feb 27, 2026
@Goooler Goooler requested a review from Copilot February 27, 2026 02:01

This comment was marked as outdated.

@Goooler Goooler enabled auto-merge (squash) February 27, 2026 02:05
@Goooler Goooler merged commit 634f246 into main Feb 27, 2026
12 checks passed
@Goooler Goooler deleted the copilot/warn-users-on-duplicates branch February 27, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants