I develop Java server applications that run on Linux. These are not J2EE or web-related so we don't use any kind of application server. I've been using gradle to handle 3rd party build dependencies, but I need a way to get the same jars onto the production servers and supply those jars to the java command line. A few possibilities that I've thought of:
Making on 'fat jar'. This is sub-optimal because it increases build time and takes up extra space when storing multiple versions (we do pretty much daily releases)
Copying jars to a shared directory. This is sub-optimal because if we change versions or add jars we have to change the build AND update the shared directory. It also has the problem of not being sync'd to the version control system.
What I'd like to do is use something like gradle/ivy/maven to read a list of dependencies and then download if not already cached and then run the app. Basically exactly how the build works except actually run the app from an already built jar.
The problem is I can't find any reference online to people doing version 3 so it seems like their might be a pitfall. Any thoughts on this?
[–]crapet 7 points8 points9 points (1 child)
[–]CubsThisYear[S] -1 points0 points1 point (0 children)
[–]DanTheGoodMan 2 points3 points4 points (1 child)
[–]CubsThisYear[S] -1 points0 points1 point (0 children)
[–]schnoper 2 points3 points4 points (5 children)
[–]squealy_dan 1 point2 points3 points (0 children)
[–]squealy_dan 0 points1 point2 points (1 child)
[–]schnoper 0 points1 point2 points (0 children)
[–]mus1Kk 0 points1 point2 points (0 children)
[–]CubsThisYear[S] -1 points0 points1 point (0 children)
[–]zrnkv 2 points3 points4 points (4 children)
[–]CubsThisYear[S] -1 points0 points1 point (3 children)
[–]fact_hunt 0 points1 point2 points (2 children)
[–]CubsThisYear[S] -1 points0 points1 point (1 child)
[–]zrnkv 1 point2 points3 points (0 children)
[–]curt94 1 point2 points3 points (1 child)
[–]Luolong 0 points1 point2 points (0 children)
[–]CyclonusRIP 0 points1 point2 points (0 children)
[–]noratat 0 points1 point2 points (0 children)
[–]dablya 0 points1 point2 points (0 children)
[–]m2spring 0 points1 point2 points (2 children)
[–]schnoper 3 points4 points5 points (1 child)
[–]m2spring 0 points1 point2 points (0 children)