Cannot resolve plugin published in Bintray

I followed the instructions in the sbt manual to publish the sbt plugin for Bintray using the bintray-sbt . It has been published well, but I am having problems with its solution.

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 run sbt for any given project, it tries to resolve the plugin with 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 that there are no apprentices, just xml and jars .

+6
source share
2 answers

It seems to be 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) 
+8
source

The Bintray-For-Plugins sbt manual also provides a link to your sbt shared repository plugin, which can probably do the trick. But I solved the same problem with Resolver.bintrayIvyRepo , which is essentially the same as @AlejandroPedraza suggested:

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

0
source

Source: https://habr.com/ru/post/984597/


All Articles