Kenneth Knowles created BEAM-2237:
-------------------------------------

             Summary: SDK should have runtime hamcrest dependency or should 
bundle it
                 Key: BEAM-2237
                 URL: https://issues.apache.org/jira/browse/BEAM-2237
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
            Reporter: Kenneth Knowles


{{TestOptions}}, {{SerializableMatchers}}, and {{PAssert}} have compile-time 
dependencies on hamcrest. We scope it {{provided}} to avoid having it on the 
classpath at runtime.

This has lots of pain points, but one that recently bit the Spark runner is 
that when {{TestOptions}} or any subinterface is registered, we gain a runtime 
dependency on Hamcest. So users of the Spark runner all had to provide it, even 
outside of testing.

We should just simplify this to either not have this dependency (perhaps via 
some hacking to make shading possibly) or declare the dependency.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to