hazelcast / hazelcast-scala

Scala language support for Hazelcast

Version Matrix

Build Status Scala version Scala version Join Chat at https://gitter.im/hazelcast/hazelcast-scala Download


The hazelcast-scala API is based on Scala 2.11/2.12 and Hazelcast 3.9, but does not define them as hard dependencies (since it works with both open-source and enterprise Hazelcast, and multiple versions), so make sure to also include the relevant Hazelcast dependencies explicitly.


Add this to your build.gradle file:

repositories {

dependencies {
  compile "org.scala-lang:scala-reflect:2.12.+"
  compile "com.hazelcast:hazelcast:3.9.+" // Or :hazelcast-enterprise:
  compile "com.hazelcast:hazelcast-scala_2.12:3.9.+"


Add this to your project's build.sbt:

resolvers += Resolver.jcenterRepo

libraryDependencies += "com.hazelcast" %% "hazelcast-scala" % "latest-integration" withSources()

Quick start:

import com.hazelcast.config._
import com.hazelcast.Scala._

val conf = new Config
val hz = conf.newInstance()

Sample Code

See the Wiki and unit tests for examples of how to use this library.