Author: Karsten Silz
Jan 4, 2023   |  updated Jan 31, 2023 5 min read

Permalink: https://betterprojectsfaster.com/guide/java-full-stack-report-2023-01/build/

Java Full-Stack Index Q1/2023: Build Tools


This is an old version! Click below for the current one.

See Current Version


The content of this page is identical throughout Q1/2023 - January, February, and March.

Summary for Q1/2023

  • Popularity trend: Maven is 2.5 times as popular as Gradle, except for Stack Overflow, where Gradle is slightly ahead. Ant and sbt have declined for years.
  • If you use Scala, then use sbt.
  • Otherwise, if you absolutely cannot stand XML files and/or need to customize your build heavily, then use Gradle.
  • Otherwise, use Maven.

Archive

2022 Q4 Q3

Table Of Contents

Choices

Here are the choices in alphabetical order:

Popularity

Why Popularity - and How?

Picking a popular technology makes our developer life easier: Easier to learn, easier to build, debug & deploy, easier to find jobs/hire, and easier to convince teammates & bosses. Now popularity can make a difference in two situations: When multiple technologies score similarly, we could go for the most popular one. And when a technology is very unpopular, we may not use it.

I measure popularity among employers and developers as the trend between competing technologies. I count mentions in job ads at Indeed for employer popularity. For developer popularity, I use Google searches, Udemy course buyers, and Stack Overflow questions.

Employers: Job Ads

The Indeed job search is active in 62 countries. I picked 59 countries representing 69% of the worldwide GDP in 2022, excluding three countries because English word searches proved ineffective there: China, Japan, and South Korea. Job searches demonstrate the willingness of organizations to pay for a technology - the strongest indicator of popularity in my mind. Gradle is the baseline.

Job ad mentions at Indeed for Ant, Gradle, Maven, and sbt
Job ad mentions at Indeed for Ant, Gradle, Maven, and sbt

This is the first time I exclude China, Japan, and South Korea from the ranking because English word searches proved ineffective there. I adjusted all past numbers as well for this issue, so they are different from past issues. And because of technical difficulties on my end, I don’t have the numbers for October 2022.

For comparison, here’s the last chart version with China, Japan, and South Korea from Q4/2022. sbt is 40% lower in September — 3% now vs. 5% before.


Maven wins, Gradle is second, Ant is third, and sbt is last. Maven leads Gradle nearly 3:1, slightly growing since June. Ant shrinks slowly while sbt is stable with meager numbers.

Please see here for details, caveats, and adjustments to the job ad mentions.

You can find the detailed search results with links here. They include breakdowns by continents:

Developers

Students at Udemy

Udemy is one of the biggest online learning sites. They publish the number of people who bought a course (beyond a certain threshold, possibly around 100k). This shows how many people evaluate a technology.

Unfortunately, Udemy shows the number of students only for Maven (149k). That’s why there’s no chart here, as a comparison is impossible.

Here are the links that show the courses for all and the number of students for some:

Google Searches

Google Trends demonstrates the initial interest in a technology over time. “More searches = better” to me.

Google Trends for Ant, Gradle, Maven, and sbt
Google Trends for Ant, Gradle, Maven, and sbt

Google changed its measurement algorithms on January 1, 2016, and January 1, 2022. That caused spikes for all values, especially in 2022.

This link produces the chart above.

Maven wins, Gradle is second, Ant is third, and sbt is last. Maven leads Gradle 2.5:1. Maven and Gradle have declined this year after Google changed its counting. Ant has declined by 98%, while sbt has always had a comparatively low search volume.

Questions at Stack Overflow

Stack Overflow Trends shows which percentage of questions at Stack Overflow has a particular technology tag. It is a proxy for using a technology during evaluation and productive use. “More questions = better” to me.

Questions at Stack Overflow for Ant, Gradle, Maven, and sbt
Questions at Stack Overflow for Ant, Gradle, Maven, and sbt

This link produces the chart above.

Gradle wins, Maven is second, sbt is third, and Ant is last. Maven and Gradle are neck-to-neck, but this time Gradle is ahead. Gradle is just a hair off its peak from mid-2018, while Maven is off by 42% from its mid-2015 high. This is the only category where sbt is in third place because Ant has declined for 13.5 years.

Analysis

  • Maven dominates Java build tools with 2.5 times the values of Gradle, except for Stack Overflow. It’s the default build system in the Java world. And unlike Gradle, few things break from release to release. Developers like that stability! Its verbose XML files are a minus for some. And creating custom build tasks is complicated: You write a Java class and distribute the task alongside your build file.
  • Gradle is the runner-up in Java build tools. It has much smaller build files than Maven, which can be either in Groovy or Kotlin. Creating custom build tasks is easy: We just add a method in the build file. Unfortunately, more things break from release to release than in Maven. That can be annoying!
  • Ant is the granddaddy of Java build tools: Its first release was in July 2000. Unlike other granddaddies, it’s still active: Its job ad mentions are 61% of Gradle’s. There are probably a ton of legacy projects using Ant. But we shouldn’t use it on new projects - Maven and Gradle are much better options.
  • sbt is the odd man out here: It’s mainly used for Scala projects. The build files are also written in Scala.

So here’s my recommendation:

  • If you use Scala, then use sbt.
  • Otherwise, if you absolutely cannot stand XML files and/or need to heavily customize your build, then use Gradle.
  • Otherwise, use Maven.

comments powered by Disqus