Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.swifth:hazelcast:v3.12.2'
}
dependencies {
implementation("com.github.swifth:hazelcast:v3.12.2")
}
<dependency>
<groupId>com.github.swifth</groupId>
<artifactId>hazelcast</artifactId>
<version>v3.12.2</version>
</dependency>
libraryDependencies += "com.github.swifth" % "hazelcast" % "v3.12.2"
:dependencies [[com.github.swifth/hazelcast "v3.12.2"]]
With its various distributed data structures, distributed caching capabilities, elastic nature, memcache support, integration with Spring and Hibernate and more importantly with so many happy users, Hazelcast is feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.
java.util.{Queue, Set, List, Map}
.java.util.concurrent.locks.Lock
.java.util.concurrent.ExecutorService
.MultiMap
for one-to-many relationships.Topic
for publish/subscribe messaging.See documentation at www.hazelcast.org
Download from www.hazelcast.org
Or use Maven snippet:
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>${hazelcast.version}</version>
</dependency>
Maven snippet:
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>${hazelcast.version}</version>
</dependency>
<repository>
<id>sonatype-snapshots</id>
<name>Sonatype Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Pull latest from repo git pull origin master
and use Maven install (or package) to build mvn clean install
.
Hazelcast has 3 testing profiles:
mvn test
to run quick/integration tests (those can be run in-parallel without using network).mvn test -P slow-test
to run tests those are either slow or cannot be run in-parallel.mvn test -P all-tests
to run all test serially using network.Hazelcast uses static code analysis tools to check if a Pull Request is ready for merge. Run the following commands locally to check if your contribution is Checkstyle and SpotBugs compatible.
mvn clean validate -P checkstyle
mvn clean compile -P spotbugs
We encourage pull requests and process them promptly.
To contribute:
For an enhancement or larger feature, create a GitHub issue first to discuss.
Please join the mail group if you are interested in using or developing Hazelcast.
http://groups.google.com/group/hazelcast
Hazelcast is available under the Apache 2 License. Please see the Licensing section for more information.
Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
Visit www.hazelcast.com for more info.