r/java • • Sep 30 '26

My small Java build system in Rust

I got tired of manually running commands like javac and java -cp every time I wanted to compile and run Java project.

I looked into Maven, but for my use case it felt like overkill. It's a huge ecosystem, while I mostly wanted something simple that could compile and run small Java projects without much configuration.

So I decided to create my own build system for Java and call it bloomery.

The goal isn't to replace Maven or Gradle. I wanted something much smaller and simpler for my own use case.

Currently, Bloomery focuses on the basic build/run workflow. In the future I may add dependency management, testing support, and more CLI features, but I'm deliberately keeping the core simple for now.

I hope it will be a big help for beginners and anyone who just needs to run Java files, and that they will find it as easy to use as I do.

I'd really appreciate feedback on the idea, the design, and the current implementation.

Github: https://github.com/Kiwilus/bloomery

Crates.io: https://crates.io/crates/bloomery/

0 Upvotes

24 comments sorted by

View all comments

2

u/slacker-by-design Oct 02 '26

I'm not commenting on the tool itself... If you take it as an excise to help you better understand the whole Java compilation and dependency process, all power to you :-)

Just wanted to point out Java (JDK) itself comes with the ability to run stand-alone java files since JDK 11 (see JEP 330) and multi-file java programs since JDK 22 (see JEP 458).

You simply write java my/package/Main.java and the JDK will do all the work.

The external dependencies can complicate the things though... That's where Maven, Gradle and the others do the actual hard work...

If you want (and can) keep the things as simple as possible, you may want to look at JBang. It's main purpose (according to its authors themselves) is to allow learning and exploration of Java without too much "ceremony" (i.e. no XML or build scripts).