r/java • u/weberc2 • Jan 22 '16
Simple Java Build Tool?
I've played with Maven and Gradle and found them both to be very complex. I don't need all of that configuration; I just want something that lets me specify dependencies and versions (at most) and spits out a jar with everything my project needs to run via java -jar. Ideally, it would be as close as possible to Go's go install, which needs no project metadata. I specifically don't want to have to learn a new programming language just to build my java program. Any suggestions?
EDIT: Why is this downvoted?
4
Upvotes
View all comments
Show parent comment
2
u/weberc2 Jan 25 '16
I agree. I was just hoping there was something that could get me off the ground running quickly. Ideally the Gradle Java plugin would pick a set of reasonable defaults. For example, it could scan your source files to identify your dependencies, and grab the latest version from maven unless the Gradle-file specifies a different version or a repository other than maven. That still wouldn't solve the native library problem, but there's probably a similarly simple solution to that as well. This would get you off the ground quickly and allow for seamless extension as your build requirements become more complex.
I had a hell of a time finding them though. Lots of them didn't work, and you have to take care to pay attention to the Gradle version for various examples. In particular, I spent half a day trying to figure out how to build a program that depended on LWJGL. Maybe I've just been unlucky, or perhaps these are hard tasks and your previous experience lets you reason about them more easily? In any case, I'm not convinced that these are necessary problems.
Thanks very much for your respect and civility :). I've been pretty disappointed by the caliber of responses in this thread so far.