Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8575

Cannot build project with 2.6.0-alpha-3 dependency using Gradle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.0-alpha-3
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      Declaring the following dependency in a Gradle build script:

      compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.6.0-alpha-3'

      Results in the following Gradle error:

      FAILURE: Build failed with an exception.

      What went wrong:
      Could not resolve all files for configuration ':Framework:compileClasspath'.
      > Could not find groovy-all.jar (org.codehaus.groovy:groovy-all:2.6.0-alpha-3).
        Searched in the following locations:
      https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.6.0-alpha-3/groovy-all-2.6.0-alpha-3.jar

      That file, of course, is missing, and I do not expect it to be there. Gradle should be able to derive dependencies from the .pom file, which is present.

      With debug on, I see Gradle appropriately evaluating the dependencies from the POM, then:

      15:51:05.979 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Detected non-existence of artifact 'groovy-all.jar (org.codehaus.groovy:groovy-all:2.6.0-alpha-3)' in resolver cache

      This works with all other version strings. One additional oddity: '2.6.0-alpha-2' actually has a groovy-all.jar in Maven Central, whereas 2.5* groovy-all downloads all of the dependency JARs.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              drosenbauer Devin Rosenbauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: