0

I wrote a simple sbt plugin which I published locally on my machine. I wanted to reference this plugin in one of my project and I ran into errors. The sbt plugin that I published had the following settings:

lazy val root = (project in file(".")).
  settings(
    name := "openelectrons-scalafmt-common-sbt-plugin",
    version := "0.0.1",
    organization := "com.openelectrons",
    scalaVersion := "2.13.8",
    sbtPlugin := true,
    sbtVersion := "1.6.2"
  )

I can see in my .ivy repo that the plugin is published under scala_2.13.

I have another Scala project where I want to use this plugin for which I added it in my plugins.sbt and when I ran it using sbt, it failed as it was looking for a Scala_2.12 version of the plugin. I'm using sbt 1.6.2. How can I force sbt to look for the sclaa_2.13 version of my plugin?

Dmytro Mitin
  • 48,194
  • 3
  • 28
  • 66
joesan
  • 13,963
  • 27
  • 95
  • 232

0 Answers0