MVN

org.hamcrest : hamcrest

Maven & Gradle

Oct 16, 2019
1.8k usages
2.1k stars

Hamcrest · Core API and libraries of hamcrest matcher framework.

<dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest</artifactId>
    <version>2.2</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of org.hamcrest : hamcrest to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 2.2
  • Latest Release Candidate: 2.2-rc1

All Versions

Choose a version of org.hamcrest : hamcrest to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
2.2
hamcrest-2.2
hamcrest-2.2-rc1
2.1
hamcrest-2.1
hamcrest-2.1-rc4
hamcrest-2.1-rc3
hamcrest-2.1-rc2
hamcrest-2.1-rc1

How to add a dependency to Maven

Add the following org.hamcrest : hamcrest maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>org.hamcrest</groupId>
    <artifactId>hamcrest</artifactId>
    <version>2.2</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following org.hamcrest : hamcrest gradle dependency to your build.gradle file:

implementation 'org.hamcrest:hamcrest:2.2'

Gradle Kotlin DSL: Add the following org.hamcrest : hamcrest gradle kotlin dependency to your build.gradle.kts file:

implementation("org.hamcrest:hamcrest:2.2")

How to add a dependency to SBT Scala

SBT Scala: Add the following org.hamcrest : hamcrest sbt scala dependency to your build.sbt file:

libraryDependencies += "org.hamcrest" % "hamcrest" % "2.2"

Advertisement

Dependencies from Group

Jul 09, 2012
5.7k usages
1.9k stars
Oct 16, 2019
4.7k usages
2.1k stars
Oct 16, 2019
4.6k usages
2.1k stars
Oct 16, 2019
1.8k usages
2.1k stars
Jan 18, 2015
717 usages
2.1k stars

Discover Dependencies

Aug 04, 2010
334 usages
Aug 03, 2020
1.3k usages
Jul 07, 2023
11 usages
2.7k stars
Apr 23, 2006
124 usages
Aug 22, 2023
852 usages
7.2k stars
Nov 06, 2012
1.9k usages
Jun 18, 2023
1k usages
Jul 29, 2017
460 usages
Jul 21, 2023
473 usages