Produce a warning when 'mergeServiceFiles()' is enabled with incompatible 'duplicatesStrategy'
enhancement
### What feature do you want to see added?
According to [documentation](https://gradleup.com/shadow/configuration/merging/#handling-duplicates-strategy) `mergeServiceFiles()` does not work with `DuplicatesStrategy.EXCLUDE`, which is the default in `ShadowJar` task.
Please add a warning when `mergeServiceFiles()` is enabled and an incompatible `DuplicatesStrategy` is configured. This should reduce users' confusion on why service files were not merged and prevent long investigation times.
Maybe it should be a more generic solution for `ResourceTransform` - compatible `DuplicateStragegy` values are defined in the transform implementation, and the plugin produces warnings according to the list.
### Upstream changes
_No response_
### Are you interested in contributing this feature?
_No response_
6 条评论