Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve servlet API dependency information from a resolved Jenkins dependency instead of hardcoding #78

Open
mkobit opened this issue Nov 30, 2018 · 0 comments

Comments

@mkobit
Copy link
Owner

mkobit commented Nov 30, 2018

// TODO: hack - total hack to get the stupid servlet API dependency on the classpath
// since I can't seem to pull it from the POM of Jenkins Core due to it being 'provided' scope
// and I don't know where it transitively comes from to determine it as dependency resolution time.
// See https://discuss.gradle.org/t/how-to-query-for-provided-scoped-dependencies-of-a-configuration/26131
// This probably won't work for older versions of Jenkins because of different servlet-api
// versions, but should work enough for now to enable usage of Jenkins core and plugin classes in the library
// source
dependencyHandler.add(this@register, "javax.servlet:javax.servlet-api:3.1.0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant