[External] : Is a jextracted jar supposed to be published?
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Jan 28 14:08:52 UTC 2021
>
> This brings me to the question: Is the jextracted jar file even
> intended to be "released" or should I consider it just an
> intermediate build artifact that _requires_ post-processing such as
> re-packaging (i.e. using maven-shade-plugin)?
>
> I know that this question may be a bit off-topic, but since there
> seem to be significant differences between generated sources and
> classes, I thought I should bring up these "downstream problems"
> before it is too late.
I believe that, eventually, both formats will do the same thing - it's
just hard (if not impossible w/o extra overhead) at the moment to have
a truly lazy source-based strategy, but as mentioned, help is on the
way (by means of other JEPs).
The jar option is mostly meant for quick consumption of the jextract-
generated artifact - it was never our goal to generate a distribution-
ready artifact. So I would file it in the "intermediate build artifact"
category. Perhaps I wonder if, by generating classes instead of a jar,
we might make this clearer than it is currently.
Maurizio
More information about the panama-dev
mailing list