[shade plugin] new transformer for properties?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[shade plugin] new transformer for properties?

Romain Manni-Bucau
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.


[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