Re: Shading, relocation and modules?

2022-04-12 Thread Robert Scholte
in a different module. In that case you can export specific packages to a different module. Is it the Java9Modules branch you're talking about? thanks, Robert -- Origineel bericht -- Van: "Niels Basjes" Aan: users@maven.apache.org Verzonden: 11-4-2022 22:28:52 Onderwerp: Shading,

Re: Shading, relocation and modules?

2022-04-12 Thread Slawomir Jaranowski
Hi, New transformer is a good idea. There is also similar issue https://issues.apache.org/jira/browse/MSHADE-262 wt., 12 kwi 2022 o 11:35 Delany napisaƂ(a): > Hi Niels, > > I don't see an existing resource transformer for module-info > >

Re: Shading, relocation and modules?

2022-04-12 Thread Delany
Hi Niels, I don't see an existing resource transformer for module-info https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html Did you see this? https://stackoverflow.com/a/58097561/2746335 Delany On Tue, 12 Apr 2022 at 11:16, Niels Basjes wrote: > Thanks. > >

Re: Shading, relocation and modules?

2022-04-12 Thread Niels Basjes
Thanks. I was hoping for a "native" Java solution instead of an (apparently necessary) external plugin that hacks this in. Niels On Mon, Apr 11, 2022 at 11:32 PM Daniel B. Widdis wrote: > > My question is what is the correct/preferred/recommended way to do this? > > Not combine shading and

Re: Shading, relocation and modules?

2022-04-11 Thread Daniel B. Widdis
> My question is what is the correct/preferred/recommended way to do this? Not combine shading and JPMS! :-) But seriously. Have a look at Moditect. It has the capability of adding a module-descriptor to a JAR after the fact, and may suit your needs. I honestly can't think of any other sane

Shading, relocation and modules?

2022-04-11 Thread Niels Basjes
Hi, I have a project ( https://yauaa.basjes.nl/ ) which is a library that is used by others as a dependency. My project uses (among other things) Antlr4 as a building block. Antlr4 is a code generator that is (rightfully) very strict about the Antlr4-runtime version available at runtime: they