[
https://issues.apache.org/jira/browse/BEAM-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17546468#comment-17546468
]
Kenneth Knowles commented on BEAM-2237:
---------------------------------------
This issue has been migrated to https://github.com/apache/beam/issues/18336
> 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
> Priority: P3
> Labels: Clarified
>
> {{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
(v8.20.7#820007)