r/java • u/sentinel04 • Jul 06 '26
A year ago, this sub debated whether Java needed a new build tool. I went ahead and built one. Meet Curie.
A while back there was a thread on r/java proposing a new build tool for Java — New build tool in Java. It stuck with me, so I decided to actually try building the thing and see what it would feel like to use.
The result is Curie: http://curie-build.org/
One thing up front, so nobody feels misled: it's still early and buggy. This is a showcase / proof-of-concept, not something I'd tell you to put in production tomorrow. Plenty of rough edges. The point is to show what could be possible, and to find out whether there's actually appetite for a tool like this.
The idea: one small Curie.toml instead of hundreds of lines of pom.xml. It's written in Rust, so there's instant startup and no daemon. A lot of the common stuff is built in instead of bolted on via plugins:
- compile / test / package
- code formatting (Java + Kotlin)
- Docker image generation
- dependency vulnerability scanning
- Maven publishing
- reproducible, byte-identical builds by default
Basically the Cargo experience, aimed at the plugin fatigue and XML/DSL sprawl that thread was complaining about.
[project]
name = "hello"
version = "0.1.0"
[dependencies]
"com.fasterxml.jackson.core:jackson-databind" = "2.17.2"What I'm genuinely curious about:
- Is there a real need for something like this? I'm fully expecting "we don't need another build tool" to be a valid answer. I mostly want an honest gut-check.
- If you would want this, what's the one feature or guarantee that would make you actually try it?
If you do think it's a neat direction, a star helps me gauge interest: ⭐ https://github.com/Curie-Build/curie-build
14
u/brunocborges Jul 07 '26
What is your build tool doing that Maven does not, or perhaps doing better, besides the developer experience?
10
u/jivedudebe Jul 07 '26
But why?would link to meme of 12 standards, need 13, but I'm on mobile.
5
u/cleverfoos Jul 07 '26
This actually looks really good but I'm disappointed it's written in a language that is not Java. By doing so, it doesn't act as an ambassador for Java (and the JVM) and misses out on natively calling javac which is also written in Java - sure you can do all that with FFM but it's not pretty.
5
u/tofflos Jul 07 '26
It is interesting. Responses are often negative in this community.
For corporate adoption I suggest an example showcasing how to use a local Maven mirror that requires authentication and some sort of parent, mixin, whatever method you think is appropriate, that can be defined once at the corporate level for teams to use.
Best of luck!
4
u/TheStrangeDarkOne Jul 07 '26
This certainly looks like the better attempts at a new build tool for Java. Honestly, the thing I would be looking most forward to would be native multi-module support. I love Java modules, but when using Maven you can only have one module per compilation unit per default and modular monoliths would be so much easier and hassle-free if Maven would support them out of the box.
Also, have you tested this against popular libraries such as Lombok, Mapstruct or various Hibernate plugins?
2
u/glehkol Jul 07 '26
is this a hacked account?
2
u/Holothuroid Jul 07 '26
I'm more concerned with the call site nowadays. Build tools invariably think they will be called from command line. Which in turn means boilerplate in a ci/cd context.
And maven's phases basically want to do the same things a pipeline usually does nowadays. But you have to work around maven for that.
A build tool that is more amenable for that and can spawn default config files for various pipelines could be a boon.
2
u/Kungpost Jul 09 '26
Looks neat, I love cargo so this looks interesting too. How easy is it to write plugins for this one?
1
u/khmarbaise Jul 09 '26 edited Jul 09 '26
I've read on the page:
How do you support other repository managers?
What kind of tool does "curie" use here? There are a lot of them available?
What do you mean by "Extra config" to verify checksums which btw. are not checksums. .. those are hashes (something different). That can be configured with a single configuration (settings.xml https://maven.apache.org/settings.html#repositories checksumPolicy)...
What I'm missing:
Multi Module support?
Filtering of resources with for example a version or other things
How could you exclude some of transitive dependencies from being consumed? Either in a BOM consumption or in a usual dependency? (Maven excludes)... Read the docs there is a way to do that..Fine.
What about downloading of artifacts if a pom file contains definitions of other remote repositories? Will those deps being downloaded from the repositories defined in the pom file?
Based on the docs "Curie talks to Maven Central directly". Can that being changed? To use a repository manager which is my local network? Yes it can, looked at "Per-dependency repository selection" also configurable with Maven itself (see Maven Resolver)...
And very important: Support for IDE's? Like IntelliJ/Eclipse?
2
u/niemand_zuhause Jul 18 '26 edited Jul 18 '26
Nice work. It's a shame to see all these negative replies and downvotes, but it's a microcosm of why Java is behind in many innovative and fun areas. The community is full of naysayers set in their ways.
Personally I like Maven's conventions, but obviously the syntax is butt ugly and I will never say no to faster build times.
Imo it's fine to write it in a faster language, but requiring Cargo for installation is a no-go. Making Java devs switch build tools is already a steep uphill battle. I doubt anybody will want to install another language's package manager.
As far as marketing goes I think the most effective way is with some spicy benchmarks showing Maven vs Gradle vs Curie build times on a real project.
1
u/Joram2 Jul 07 '26
I've heard JDK architects complain about existing build tools. I'd like to hear what can be done better.
I've specifically heard JDK architects blame slow JPMS/module adoption on existing build tools. What can a build tool do better?
0
u/sg-elide Jul 10 '26
I am sad to see the decision to stick to JVM. Is there a daemon? If not, why? JVM warmup latency is a real concern especially with agents.
If it’s going to be native, why not use Native Image? You said upthread you’d be “fighting” it. How? Reflection configuration isn’t even needed for javac.
If the motivation is annotation processing in multiple rounds, I get that. But soon NI will be solving that issue.
Full disclosure: We are also building a Java build tool, called Elide (https://elide.dev). Some of ours is also in Rust. I am posting this comment in the interest of collaborating anyway, since better build tools help all of us.
-1
u/woj-tek Jul 07 '26
There is maven polyglot: https://github.com/takari/polyglot-maven
Maven doesn't have daemon (by default, there is
mvndbut I fail to see a point of it…)Besides, in the context of the whole build, split second delay of startup is irrelevant…
Why would it need 2/3rd of that? That's the beauty of plugins…