You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2019/07/12 18:24:18 UTC

[shade plugin] new transformer for properties?

Hello everyone,

I just did a ticket+PR on maven shade plugin to add some properties related
transformers ([1])

The rational is that it is currently tricky to handle all frameworks using
an ordinal like key to solve conflictings entries when merging properties
at runtime.

As you can see in the PR, Apache OpenWebBeans but also Microprofile Config
use this kind of logic to cite a few.

The main implementation logic was just extracted from Apache OpenWebBeans,
only addition was a key configuration to be able to mark a properties as
being already merged manually and therefore to skip all other files - and
fail if two are already merged.

Wdyt?

[1] https://issues.apache.org/jira/browse/MSHADE-322

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>