Skip to main navigation Skip to search Skip to main content

Gradle-Autofix: An Automatic Resolution Generator for Gradle Build Error

    • Jeonbuk National University

    Research output: Contribution to journalJournal articlepeer-review

    Abstract

    Gradle is one of the widely used tools to automatically build a software project. While developers execute the Gradle build for projects, they face various build errors in practice. However, fixing build errors is not easy because developers should manually find out the cause of the build error and its resolution on their project. For this reason, developers spend much time fixing them, and especially it can be worse if a developer lacks the experience of handling build errors. To address this issue, we propose a novel approach named Gradle-AutoFix to automatically fix build errors along with providing their causes and resolutions. In this approach, we collect build errors to group their causes and resolutions and then generate feature vectors from build error messages by applying Bag-of-Word (BoW), Term Frequency-Inverse Document Frequency (TF-IDF), Bigram, and an embedding layer. The feature vectors are utilized for training two classification models on cause and resolution. Next, we analyze fixing patterns and define seven resolution rules to fix the build error automatically. Based on our trained models and defined resolution rules, we built Gradle-AutoFix. For the evaluation, we measured how appropriately Gradle-AutoFix provides causes of build errors and resolutions. As a result, we obtained 96% and 91% accuracy, respectively. Also, we assessed how properly Gradle-AutoFix fixes the project's build error based on the seven resolution rules. The outcome showed a 64.5% build error resolution rate for 231 projects.

    Original languageEnglish
    Pages (from-to)583-603
    Number of pages21
    JournalInternational Journal of Software Engineering and Knowledge Engineering
    Volume32
    Issue number4
    DOIs
    StatePublished - 2022.04.1

    Keywords

    • build error
    • cause of the build error
    • Gradle
    • resolution

    Quacquarelli Symonds(QS) Subject Topics

    • Computer Science & Information Systems
    • Data Science

    Fingerprint

    Dive into the research topics of 'Gradle-Autofix: An Automatic Resolution Generator for Gradle Build Error'. Together they form a unique fingerprint.

    Cite this