Use Pre-built Libs

Download a pre-built library

You can download the BigDL release and nightly build from the Release Page

Currently, BigDL releases are hosted on maven central; here's an example to add the BigDL dependency to your own project:


Please choose the suffix according to your Spark platform.

SBT developers can use

libraryDependencies += "" % "bigdl-[SPARK_1.5|SPARK_1.6|SPARK_2.1|SPARK_2.2|SPARK_2.3]" % "${BIGDL_VERSION}"

You can find the optional ${BIGDL_VERSION} from the Release Page.

Currently, BigDL development version is hosted on SonaType.

To link your application with the latest BigDL development version, you should add some dependencies like Linking with BigDL releases, but set ${BIGDL_VERSION} to 0.13.0-SNAPSHOT, and add below repository to your pom.xml.

    <name>sonatype repository</name>

SBT developers can use

resolvers += "Sonatype OSS Snapshots" at ""

Note: if you use sbt on branch 0.7 and before, you should add this configuration to build.sbt like below.

val repo = ""
def mkl_native(os: String): String = {

def bigquant_native(os: String): String = {


libraryDependencies += "" % "bigdl-SPARK_2.3" % "0.7.0" exclude("", "bigdl-core") exclude("", "all")

// Mac
libraryDependencies += "" % "mkl-java-mac" % "0.3.0" from mkl_native("mac")
libraryDependencies += "" % "bigquant-java-mac" % "0.3.0" from bigquant_native("mac")

If you want to run it on other platforms too, append below,

// Linux
libraryDependencies += "" % "mkl-java" % "0.3.0"
libraryDependencies += "" % "bigquant-java" % "0.3.0"

// Windows
libraryDependencies += "" % "mkl-java-win64" % "0.3.0" from mkl_native("win64")
libraryDependencies += "" % "bigquant-java-win64" % "0.3.0" from bigquant_native("win64")

If you will assemble all dependencies to a jar. You need to add merge strategy like below.

assemblyMergeStrategy in assembly := {
    case x if x.contains("com/intel/analytics/bigdl/bigquant/") => MergeStrategy.first
    case x if x.contains("com/intel/analytics/bigdl/mkl/") => MergeStrategy.first
    case x =>
      val oldStrategy = (assemblyMergeStrategy in assembly).value