-
Bug
-
Resolution: Fixed
-
Minor
-
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' }
[JENKINS-34945] Build fails for jenkinsCore >= 2.0
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 171148 ] | New: JNJira + In-Review [ 210056 ] |
Improving on the workaround (using Gradle v2.12 and later) the dependency can also be written as a compileOnly dependency, thus avoiding having the servlet-api JAR ending up in the plugin.