TesterHQ - The Evil Tester Blog Aggregator

Aug 21, 2017 - 2 minute read - Instagram

Instagram Post - Bloated Build After Adding Dependency

Original Instagram Post

I wanted to generate html documentation within my REST app so I added flexmark library to convert markdown to html.

But - aargh it bloated my .jar from 2 meg to 21 meg.

Quality has many attributes and one I wanted for this app was -smallness.

I decided to add flexmark only to the ‘test’ scope and have some tests generate the html as resource files and then I load and cache the resource files in memory when the server i running, rather than generate the HTML on the fly.

Always worth building your app after you add dependencies to make sure the library isn’t overly dependent on ‘the rest of the world’. #Java #javadevelopment #maven #restapi #softwaretesting #softwaretester