Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3053

Gradle clean build fails with "GradleException: Failed to create Jar file"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • Next - API
    • None
    • CI/Infrastructure
    • None

      When using the latest version of Quarkus, gradle started failing with:

      ./gradlew build                                                                                                                                                           
      
       FAILURE: Build failed with an exception.
      
      * What went wrong:
      A problem occurred configuring root project 'project'.
      > java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file /Users/<redacted>/.gradle/caches/jars-9/c94f549fdaad0dab4fb786ae7d97e150/jackson-core-2.15.0-rc1.jar.
      
      * Try:
      > Run with --stacktrace option to get the stack trace.
      > Run with --info or --debug option to get more log output.
      > Run with --scan to get full insights.
      
      * Get more help at https://help.gradle.org
      
      BUILD FAILED in 569ms
      

      This seems to be a bug in Gradle: https://github.com/gradle/gradle/issues/24390 that is fixed in 8.4+ (we're using 8.3).

      Acceptance Criteria

      • Upgrade 8.3
      • Swatch-Contracts is using a different version of gradle. Let's also unify the gradle distribution for this project.

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: