Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't resolve to plugin published in Bintray

Tags:

sbt

I followed the instructions described in the sbt manual to publish an sbt plugin to Bintray, using the bintray-sbt plugin. It got published ok, but I'm having problems resolving to it.

I have this in ~/.sbt/0.13/plugins/plugins.sbt:

resolvers += Resolver.bintrayRepo("alpeb", "sbt-plugins")

addSbtPlugin("com.alpeb" % "sbt-gitignore" % "1.0.1")

When I start sbt for any given project, it tries to resolve the plugin to something like https://dl.bintray.com/alpeb/sbt-plugins/com/alpeb/sbt-gitignore_2.10_0.13/1.0.1/sbt-gitignore-1.0.1.pom

but Bintray put my files under https://dl.bintray.com/alpeb/sbt-plugins/com.alpeb/sbt-gitignore/scala_2.10/sbt_0.13/ and it seems there are no poms under there, just xml and jars.

like image 925
Alejandro Pedraza Avatar asked Apr 02 '15 03:04

Alejandro Pedraza


2 Answers

Seems like there's a problem with

resolvers += Resolver.bintrayRepo("alpeb", "sbt-plugins")

Using this instead did the trick:

resolvers += Resolver.url(
  "bintray-alpeb-sbt-plugins",
  url("http://dl.bintray.com/alpeb/sbt-plugins"))(
  Resolver.ivyStylePatterns)
like image 125
Alejandro Pedraza Avatar answered Oct 15 '22 06:10

Alejandro Pedraza


The sbt's Bintray-For-Plugins manual also tells to link your plugin to sbt's shared repository which probably may do the trick. But I solved the same issue with Resolver.bintrayIvyRepo which is essentially the same as @AlejandroPedraza suggested:

resolvers += Resolver.bintrayIvyRepo("alpeb", "sbt-plugins")

like image 23
Sergiy Sokolenko Avatar answered Oct 15 '22 08:10

Sergiy Sokolenko