Ehcache Maven Dependency

This page gives you a quick reference to get Ehcache dependency for Maven or Gradle projects. You can also download the Ehcache jar dependency, the link given at the "Download JAR File" section.

Ehcache is a widely used open-source Java-based cache. It features memory and disk stores, listeners, cache loaders, RESTful and SOAP APIs and other very useful features.

Ehcache Maven Dependency

Copy below Ehcache maven dependency and paste in your project pom.xml file:
<!-- https://mvnrepository.com/artifact/org.ehcache/ehcache -->
<dependency>
    <groupId>org.ehcache</groupId>
    <artifactId>ehcache</artifactId>
    <version>3.8.1</version>
</dependency>
For more details about the proper version to use, check out the following Maven Central link.

Ehcache Gradle Dependency

Copy below Ehcache gradle dependency and paste in your project build.gradle file:
// https://mvnrepository.com/artifact/org.ehcache/ehcache
compile group: 'org.ehcache', name: 'ehcache', version: '3.8.1'

Download JAR File

Check for Latest Release

Reference



Comments