-
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' }
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.