Search code examples
mavengradlejenkins-groovyhudson-plugins

Gradle Dependency Problem when Upgrading to Gradle 6


I have a gradle Project where I have a dependency on "hudson-core 3.3.3"

compile group: 'org.eclipse.hudson', name: 'hudson-core', version: '3.3.3'

This works without a problem when using Gradle 5.6.2

When I upgrade to Gradle 6.0.1 I receive the following error:

Could not resolve org.eclipse.hudson:hudson-remoting:3.0.3.
 Required by:
     project : > org.eclipse.hudson:hudson-core:3.3.3
     project : > org.eclipse.hudson:hudson-core:3.3.3 > org.eclipse.hudson:hudson-cli:3.3.3
  > Could not resolve org.eclipse.hudson:hudson-remoting:3.0.3.
     > inconsistent module metadata found. Descriptor: org.eclipse.hudson:hudson-remoting:3.0.4-SNAPSHOT Errors: bad version: expected='3.0.3' found='3.0.4-SNAPSHOT'

The Repository is always the same:

repositories {
mavenCentral()
maven {
    url 'http://repo.jenkins-ci.org/public/'
}

}

Any Ideas why this error happens?


Solution

  • In the pom.xml file of hudson-remoting 3.0.3, the version is <version>3.0.4-SNAPSHOT</version>

    The issue is quite clear.

    I tried with an old Gradle 4.4.1 and I am having the exact same issue. Likewise with Gradle 5.1.1 and your version, 5.6.2

    I'm quite sure that if you clean your artefact cache for Gradle 5.6.2, it won't work anymore.

    The error is on the repository side.