-
Notifications
You must be signed in to change notification settings - Fork 12
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
jcabi-matchers is a runtime dependency #38
Conversation
Not sure if I'm missing something, but it seems to me `jcabi-matchers` is a runtime dependency and not just a test one. It is used by `DefaultHtmlValidator`: ``` java.lang.NoClassDefFoundError: com/jcabi/matchers/XhtmlMatchers at com.jcabi.http.response.XmlResponse.assertXPath(XmlResponse.java:142) at com.jcabi.w3c.DefaultHtmlValidator.validate(DefaultHtmlValidator.java:87) ```
@yegor256 please, pay attention to this pull request |
Job |
@rultor merge |
@nicoulaj @yegor256 Oops, I failed. You can see the full log here (spent 10min)
|
@nicoulaj I think we need |
@yegor256: After giving a closer look, the correct dependency chain is |
@nicoulaj jcabi-http has many "optional" dependencies, because the core functionality of the library doesn't require them. For example, you can use jcabi-http without jcabi-matchers. Only when you start using |
Optional dependencies are not a really good pattern, the result is that as an end user I have to go through your dependency tree to understand how to use the library... |
@nicoulaj well, maybe. But that's the way it works now. To merge this PR we need to set the dependency into |
The job #38 is now out of scope |
Not sure if I'm missing something, but it seems to me
jcabi-matchers
is a runtime dependency and not just a test one.It is used by
DefaultHtmlValidator
: