gilcloud / sbt-gitlab

sbt plugin to allow dependency resolution and artifact publishing for gitlab
Apache License 2.0
26 stars 20 forks source link

Download package(s) from Gitlab #18

Open sfali opened 3 years ago

sfali commented 3 years ago

Hi There,

I have some Scala SBT plugin in private repository in Gitlab, now in other project I need to add this plugin in plugin.sbt. The question is how to download this plugin from Gitlab? Is there any easy way to do it? I have setup the resolver but plugin can't be found.

Regards,

Syed

gilandose commented 3 years ago

should just be a case of addSbtPlugin("com.gilcloud" % "sbt-gitlab" % "0.0.6") in your plugins.sbt can also add enablePlugins(GitlabPlugin) in build.sbt

logicbomb commented 3 years ago

I was able to get this working by removing the sbt-coursier from plugins.sbt and setting useCoursier in ThisBuild := false in build.sbt

sfali commented 3 years ago

When it comes to downloading project dependencies this plugin works as designed, my problem is that I have a common SBT plugin that is needed to be added in other project. In order to use this plugin in other project we need to add it in plugin.sbt, since plugin is in Gitlab other projects failed to download it, adding sbt-gitlab would not make any difference, unless you have a custom resolver.

gilandose commented 3 years ago

the plugin resolution is done differently to package resolution I don't think this will help with that currently