Right - so I have a few experiments for that. Lets call it "broadly unsolved." You can go through my post history to see a few.
But, options that exist today:
jresolve/coursier: Tools that can dump jars into a directory or output a path
jbang: Solves launching a script with the build deps, not so much the deps for multi-module builds.
jpm: Dumps jars into a folder. Less "scripting" involved because that is its default, but i know Cay Horstmann likes it.
jproject + jigsaw: Experiments, I'll post about them when i get around to more interesting progress. The two usage patterns I am partial to at this point are
java @deps src/Main.java (generate argfiles)
Use jlink to make a project specific JDK and then jlink again to distribute the app.
But I am convinced there is a way out there.
But a minimal Gradle file that does nothing but compile sources and create a jar file will probably shorter than what you need to do the same in your tool. The complexity is added when you need more functionality.
Gradle's dependence on kotlin and scala aside, imagine Gradle was just a normal library you included. (Not something that owns the bootstrap process) You can like all of its defaults and even its Task abstraction.
I think that would leave room for using gradle to be much less of a forced choice, because alternatives would be much more viable.
What I think it would solve is writing builds for beginners who just started learning Java and will understand easier what happens during the build because all is using the same language.
And that alone is a worthy goal. If you want to think of Gradle as the end point (I don't think so, but for sake of argument) then making this step of the journey easier + incremental would lead to much better educated users of Gradle
will probably shorter than what you need to do the same in your tool.
Yeah - but the fact that Java doesn't need to be compiled anymore (You can run it very similarly to Python) I think lowers the relative importance of builds for a lot of people. The short-ish script you'd need to write to make a jar is probably just fine for most.
View all comments
Show parent comment
0
u/bowbahdoe Jul 14 '26
Right - so I have a few experiments for that. Lets call it "broadly unsolved." You can go through my post history to see a few.
But, options that exist today:
jresolve/coursier: Tools that can dump jars into a directory or output a path
jbang: Solves launching a script with the build deps, not so much the deps for multi-module builds.
jpm: Dumps jars into a folder. Less "scripting" involved because that is its default, but i know Cay Horstmann likes it.
jproject + jigsaw: Experiments, I'll post about them when i get around to more interesting progress. The two usage patterns I am partial to at this point are
java @deps src/Main.java(generate argfiles)jlinkto make a project specific JDK and thenjlinkagain to distribute the app.But I am convinced there is a way out there.
Gradle's dependence on kotlin and scala aside, imagine Gradle was just a normal library you included. (Not something that owns the bootstrap process) You can like all of its defaults and even its Task abstraction.
I think that would leave room for using gradle to be much less of a forced choice, because alternatives would be much more viable.
And that alone is a worthy goal. If you want to think of Gradle as the end point (I don't think so, but for sake of argument) then making this step of the journey easier + incremental would lead to much better educated users of Gradle
Yeah - but the fact that Java doesn't need to be compiled anymore (You can run it very similarly to Python) I think lowers the relative importance of builds for a lot of people. The short-ish script you'd need to write to make a jar is probably just fine for most.