Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34945

Build fails for jenkinsCore >= 2.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gradle-jpi-plugin
    • None
    • Windows 10 x64, Gradle 2.9, JDK 8u92 x64

      Jenkins version 2.x dependes on javax.servlet:javax.servlet-api:3.1.0 but the generated dependency uses the old module name servlet-api which is not resolvable.

      I have managed to work around this by adding the dependency explicitly and excluding the erroneous one, like so:

      dependencies {
      	compile 'javax.servlet:javax.servlet-api:3.1.0'
      }
      
      configurations {
      	all*.exclude module: 'servlet-api'
      }
      

            daspilker Daniel Spilker
            fbruzelius Fredrik Bruzelius
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: