Discussion:
Changes to concatenate and transform file contents when merging jars
Peter Donald
2017-07-31 01:39:34 UTC
Permalink
I am curious what the use case for this is? Is it mostly merged metadata
descriptors of one sort or another?
I have added to the codebase changes to allow concatenating file contents
when merging archives.
I am also opening a pull request to do the same thing, but transforming
https://github.com/apache/buildr/pull/28 <https://github.com/apache/
buildr/pull/28>
Cheers!
Antoine
--
Cheers,

Peter Donald
Antoine Toulme
2017-07-31 03:33:51 UTC
Permalink
This is the equivalent - albeit in a more generic way - to the resource transformers of the Maven shade plugin:
https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html <https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html>

This also should help with things like the uberjar extension, or in general creating executable, shaded/all-in-one jars.
Post by Peter Donald
I am curious what the use case for this is? Is it mostly merged metadata
descriptors of one sort or another?
I have added to the codebase changes to allow concatenating file contents
when merging archives.
I am also opening a pull request to do the same thing, but transforming
https://github.com/apache/buildr/pull/28 <https://github.com/apache/
buildr/pull/28>
Cheers!
Antoine
--
Cheers,
Peter Donald
Antoine Toulme
2017-07-31 03:44:19 UTC
Permalink
To be complete, this came from my experience around Kotlin.

Here is the project I have created working with Kotlin, ,making a Spring boot executable jar.
https://github.com/atoulme/cuteuuidgenerator/blob/master/Buildfile <https://github.com/atoulme/cuteuuidgenerator/blob/master/Buildfile>

Note the project also comes with a gradle build file so you can compare!
Post by Antoine Toulme
https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html <https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html>
This also should help with things like the uberjar extension, or in general creating executable, shaded/all-in-one jars.
Post by Peter Donald
I am curious what the use case for this is? Is it mostly merged metadata
descriptors of one sort or another?
I have added to the codebase changes to allow concatenating file contents
when merging archives.
I am also opening a pull request to do the same thing, but transforming
https://github.com/apache/buildr/pull/28 <https://github.com/apache/
buildr/pull/28>
Cheers!
Antoine
--
Cheers,
Peter Donald
Loading...