0

I used this explanation how to publish and fetch SBT libraries from CodeArtifacts:

Publish artifact to AWS CodeArtifact with sbt

my issue is that one of the things I want to publish is not a library, its a plugin, so I used the same explanation, except that I have all the plugin setup (I used frog before and it was working fine, just changed to publish to CodeArtifacts instead based on this explanation)

the publish went fine, I went and took this line: enter image description here

cause that's what I have there and inserted inside the plugin code: addSbtPlugin("com.mycompany" % "sbt-plugin_2.12_1.0" % "0.0.41")

and when I tried to fetch I get "not found".

am I doing something wrong?

Gaël J
  • 11,274
  • 4
  • 17
  • 32
JohnBigs
  • 2,691
  • 3
  • 31
  • 61

1 Answers1

0

You need to remove the suffix _2.12_1.0:

addSbtPlugin("com.mycompany" % "sbt-plugin" % "0.0.41")

The suffix is automatically managed by SBT.

FYI, 2.12 is the Scala version of the plugin, 1.0 is the SBT major version

Gaël J
  • 11,274
  • 4
  • 17
  • 32