Skip to content

Document handing DuplicatesStrategy#1343

Merged
Goooler merged 6 commits intomainfrom
g/20250313/docs-for-dup-strategy
Mar 13, 2025
Merged

Document handing DuplicatesStrategy#1343
Goooler merged 6 commits intomainfrom
g/20250313/docs-for-dup-strategy

Conversation

@Goooler
Copy link
Copy Markdown
Member

@Goooler Goooler commented Mar 13, 2025

Closes #520.

@Goooler Goooler requested a review from Copilot March 13, 2025 09:24
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request adds documentation for the duplicatesStrategy property in the ShadowJar task. The documentation provides a good overview of the available strategies and how to configure them. However, there are a few minor issues that could be improved.

Merge Readiness

The code changes are generally well-done and the documentation is helpful. I would recommend addressing the minor issues before merging. I am unable to directly approve this pull request, and recommend that others review and approve this code before merging.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new documentation section detailing how the ShadowJar task handles duplicate files according to the duplicatesStrategy property.

  • Introduces an explanation of various duplicate handling strategies (EXCLUDE, FAIL, INCLUDE, INHERIT, WARN).
  • Provides Kotlin and Groovy code snippets for configuring the duplicatesStrategy in ShadowJar tasks.

Goooler and others added 2 commits March 13, 2025 17:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Goooler Goooler requested a review from Copilot March 13, 2025 09:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR documents the handling of duplicates in ShadowJar by introducing a dedicated section on DuplicatesStrategy.

  • Added a new "Handling Duplicates Strategy" section with detailed descriptions of the available strategies.
  • Provided Kotlin and Groovy code examples that demonstrate how to override the default duplicatesStrategy.
  • Updated the explanation of how different strategies affect the final JAR content.

@Goooler Goooler enabled auto-merge (squash) March 13, 2025 09:34
@Goooler Goooler merged commit 2760e69 into main Mar 13, 2025
7 checks passed
@Goooler Goooler deleted the g/20250313/docs-for-dup-strategy branch March 13, 2025 09:34
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.

Add docs for the usages of DuplicatesStrategy

2 participants