News for hackers. Stuff that matters.
Re:Faster Maven Builds by willvarfar on Monday October 04, 2021 @04:04AM (#28744260)
For my projects, building the jar-with-dependencies takes forever. And as there is a zip file from the previous build just sitting there, it’s a real shame the system isn’t clever enough to examine and reuse vast swathes of it.
Re:Faster Maven Builds by lmm on Monday October 04, 2021 @04:37AM (#28744453)
A jar-with-dependencies is not really working with the grain of maven - you're meant to use the "exploded" version and use maven to run with the right classpath. Caching and reusing build outputs sounds clever, but my experience with Gradle is that the cache wastes far more time than it ever saves, either by taking longer to search the cache than to rebuild the thing, or by causing nondeterministic misbuilds that take days to debug.
Re:Faster Maven Builds by emmelaich on Monday October 04, 2021 @07:10AM (#28745241)
Can't you just 'install' it then make it a dependency itself?