Publishing libraries to local repository using SBT

In my project, I wanted to use ScalaJS wrapper for Google Maps from https://github.com/coreyauger/scalajs-google-maps. It turned out, that library artifacts are not published, where they were supposed to be.

Fortunately, it is very easy to build those artifacts yourself and use them in your project:

  1. Clone the project
  2. Deploy the project to your local repository
  3. Add dependency in your project

Run following commands:

git clone https://github.com/coreyauger/scalajs-google-maps.git
cd scalajs-google-maps
sbt publish local

Add dependency to your ScalaJS project:

libraryDependencies += “io.surfkit” %%% “scalajs-google-maps” % “0.0.3”

Leave a Reply

Your email address will not be published. Required fields are marked *