You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 17:20:19 UTC

[GitHub] [beam] kennknowles opened a new issue, #18308: Consider minimization on shaded jars

kennknowles opened a new issue, #18308:
URL: https://github.com/apache/beam/issues/18308

   Some of our modules shade and relocate Guava as part of their build, this adds a considerable amount to their file size, even though they do not use every single class in Guava's jar.
   maven shade-plugin solves this by minimization which only shades classes which are in use in the module into the jar.
   
   There are a few issues with configuring minimzation for our shaded modules currently:
   
   1. There is a bug in shade-plugin where if minimization is declared on a project with pom packaging it fails. I have created a [ticket](https://issues.apache.org/jira/browse/MSHADE-253) and [PR](https://github.com/apache/maven-plugins/pull/107) with a fix for this but could take a while before it is available to us (The fix has been merged but not released yet).
   2. Minimization on all of our modules adds a significant amount of build time, which we wish to avoid. (Up from 02:30 mins for a build of the entire project (skipping tests) on a Macbook pro laptop to over 5 mins)
   
   Imported from Jira [BEAM-1720](https://issues.apache.org/jira/browse/BEAM-1720). Original Jira may contain additional context.
   Reported by: aviemzur.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org