r/java • u/Party_Till_I_Die • Aug 06 '26
Isolated Projects is incubating in Gradle 9.7.0 (2,500-project monorepo: configuration 10m53s → 2m59s)
Isolated Projects moved from experimental to incubating in today's Gradle 9.7.0 release. When it's on, each project is isolated from the others, which lets Gradle configure them in parallel instead of one at a time.
Numbers from a pure-Java backend monorepo of 2,500 projects, at a parallelism of 6:
- Warm IntelliJ IDEA sync: 3m25s → 2m13s
- Configuration with build-script recompilation: 10m53s → 2m59s
Gradle's own 300-subproject build saw median IDE sync go from 84s to 47s.
My blog post: https://blog.gradle.org/introducing-isolated-projects
Gradle 9.7.0 release notes: https://docs.gradle.org/current/release-notes.html
36
Upvotes
8
u/paul_h Aug 06 '26
Was clicking and clicking hoping to see the monorepo of 2,500 projects, but couldn't find it.
14
u/brunocborges Aug 06 '26 edited Aug 07 '26
Now give me convention over configuration!
Edit: for folks downvoting comments in this thread, arguing that Gradle has convention over configuration...
One can write the following build.gradle:
And have the same result as the following:
Which can have the same result as this:
Gradle's convention over configuration at the moment is provided by plugins that set certain defaults. This is still not "Gradle has Conv-over-Config".
A pom.xml can only be written in very specific ways, because of the POM XML Schema, and the core plugins are implicitly defined, with defaults.
So no, Maven and Gradle don't share the same level of Convention over Configuration, and the Gradle team acknowledges this.
4
u/oweiler Aug 06 '26
Doesn't help with single module projects though
2
u/NHarmonia18 Aug 10 '26
Really don't understand Gradle haters in the comments. Gradle has a more sensible dependency resolution rule (highest version wins) compared to the absolute nonsense that is Maven (nearest version wins), has a better CLI, has an in-built application runner and file watcher to live reload, has 1:1 mapping of JPMS scopes.
Yet all Maven users hate on it for one thing that is 'no convention over configuration'. Yeah sure Gradle build files are technically its own entire DSL, but for the most part, you only need 1-2 days max to understand the most important things and can leave out other features for the most part.
Gradle is far, far better than Maven, and I am not exaggerating it. This is also the reason why Android chose Gradle over Maven.
-4
u/sosickofandroid Aug 06 '26
I’ve been using isolated projects and now 9.7rcs are fucking all my configurations in the bin because “it has problems” that aren’t fucking problems and I used to be able to tell it to shut the fuck up and just work. Just more and more garbage from the gradle team
-1
u/Life_Sink9598 Aug 07 '26
What does configuration do that is taking so long?
| Welcome to JShell -- Version 26.0.1| For an introduction type: /help introjshell> var T = 10 * 60 + 53T ==> 653jshell> var P = 2500P ==> 2500jshell> var T_avg = (double)T / PT_avg ==> 0.2612So 261ms per project. What's up with that?