It appears that the Java implementation of Hamcrest is at version 2.2 now: https://github.com/hamcrest/JavaHamcrest/releases Judging from the release notes this should also fix compatibility issues with JDK 11 (e.g. bug #751379).