arrow
Return

Local software buildability across Java versions

delete2026-02-18
delete0
delete
OA
AI
M
Matúš Sulír *
J
Jaroslav Porubän
S
Sergej Chodarev
DOI:10.1007/s10664-026-10806-6delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Downloading the source code of open-source Java projects and building them on a local computer using Maven, Gradle, or Ant is a common activity performed by researchers and practitioners. Several studies have so far found that about 40–60% of such attempts fail. Our experience in recent years suggests that the proportion of failed builds continually rises even further. First, we empirically tested our hypothesis that with increasing Java versions, the percentage of build-failing projects tends to grow. Next, nine additional research questions were proposed, related mainly to the proportions of failing projects, universal version compatibility, failures under specific JDK versions, success rates of build tools, wrappers, and failure categories. We sampled 2,500 random plain Java projects having a build configuration file and meeting basic quality criteria from GitHub. We tried to automatically build every project in containers with Java versions 6 to 23 installed. Success or failure was determined by exit codes, and standard output and error streams were saved. Data were automatically processed and supplemented with manual analysis when necessary. Our hypothesis was not confirmed; there is no monotonic trend in the projects’ build success rates. From Java 8 onward, they range from 30 to 44%, with a peak at JDK 17. Downgrading the latest JDK can fix 52% of failed builds. Trying the long-term support versions (8, 11, 17, and 21) is a particularly effective build repair strategy. We also found that about 32% of projects fail for all JDKs. Gradle consistently has the lowest success rate of all tools, and builds most frequently fail during initialization and compilation. Building projects with a wrong Java version is a significant failure factor. We provide actionable suggestions for language designers, build tool authors, project maintainers, researchers designing build repair tools, and developers compiling open-source projects.
Keywords:
Build tools
Java
Gradle
Maven
Ant
Compatibility
The evolution of Java build systems
err2011-07-23
err47
PREAI
errMcIntosh, Shane; Adams, Bram; Hassan, Ahmed E.
errShare
errSave
Classport: Designing runtime dependency introspection for Java
err2026-10-07
err0
errOAAI
errSerena Cofano; Daniel Williams; Aman Sharma; Martin Monperrus
errShare
errSave
Testing the past: can we still run tests in past snapshots for Java projects?
err2024-07-30
err0
errOAAI
errMaes-Bermejo, Michel; Gallego, Micael; Gortazar, Francisco; Robles, Gregorio; Gonzalez-Barahona, Jesus M.
errShare
errSave
How Java APIs break - An empirical study
err2015-09-01
err41
PREAI
errJezek, Kamil; Dietrich, Jens; Brada, Premek
errShare
errSave
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

F
faculty of electrical engineering and informatics
Scholars:
12
Papers: 6
Citations: 1
Cited Papers

Cited Papers

Large-Scale Dataset of Local Java Software Build Results
errData
IF0
err2020-09-21
err0
errOAAI
errMatúš Sulír; Michaela Bačíková; Matej Madeja; Sergej Chodarev; Ján Juhár
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
DéjàVu: a map of code duplicates on GitHub
err2017-10-12
err0
errOAAI
errCristina V. Lopes; Petr Maj; Pedro Martins; Vaibhav Saini; Di Yang; Jakub Zitny; Hitesh Sajnani; Jan Vitek
errShare
errSave
errShare
errSave
LogChunks
err2020-09-18
err0
errOAAI
errCarolin E. Brandt; Annibale Panichella; Andy Zaidman; Moritz Beller
errShare
errSave
There and back again: Can you compile that snapshot?
err2016-12-20
err0
PREAI
errMichele Tufano; Fabio Palomba; Gabriele Bavota; Massimiliano Di Penta; Rocco Oliveto; Andrea De Lucia; Denys Poshyvanyk
errShare
errSave
Revisiting the building of past snapshots - a replication and reproduction study
err2022-03-17
err9
errOAAI
errMaes-Bermejo, Michel; Gallego, Micael; Gortazar, Francisco; Robles, Gregorio; Gonzalez-Barahona, Jesus M.
errShare
errSave
researcher View more