How to use plugin in sbt project when only the plugin's sources available?

Viewed 2153

I want to use the sbt-scrooge plugin, but its repo is unavailable now - http://koofr.github.com/.

I thought I'd include this plugin's source code directly in my own repo (as a git submodule).

I tried:

git submodule add https://github.com/bancek/sbt-scrooge.git project/sbt-scrooge

and added:

addSbtPlugin("net.koofr" % "sbt-scrooge" % "3.0.45")

to project/plugins.sbt. But it doesn't work - the following exception is thrown:

sbt.ResolveException: unresolved dependency: net.koofr#sbt-scrooge;3.0.45: not found

What's the right way to do that?

I know that I could checkout sbt-scrooge to the local filesystem, then sbt publish-local, and add the local ivy2 repo to sbt as a resolver. But I just want to know whether there are other ways to do this.

2 Answers
Related