Installation
The hazelcast-scala API is based on Scala 2.11 and Hazelcast 3.6, but does not define them as hard dependencies (since it works with both open-source and enterprise Hazelcast), so make sure to also include the relevant Hazelcast dependencies.
Gradle
Add this to your build.gradle
file:
repositories {
maven {
url "http://dl.bintray.com/nilskp/maven"
}
}
dependencies {
compile "org.scala-lang:scala-reflect:2.11.+"
compile "com.hazelcast:hazelcast-all:<version>" // Or enterprise
compile "com.hazelcast:hazelcast-scala_2.11:<version>"
}
SBT
Add this to your project's build.sbt
:
resolvers += "nilskp/maven on bintray" at "http://dl.bintray.com/nilskp/maven"
libraryDependencies += "com.hazelcast" %% "hazelcast-scala" % "latest-integration" withSources()
Quick start:
import com.hazelcast.config._
import com.hazelcast.Scala._
val conf = new Config
serialization.Defaults.register(conf.getSerializationConfig)
val hz = conf.newInstance()
Sample Code
See the Wiki and unit tests for examples of how to use this library.