These are chat archives for sbt/sbt

24th
Oct 2016
Grzegorz Slowikowski
@gslowikowski
Oct 24 2016 06:48

Hi. I'd like to add sbt-scoverage plugin to scalac-scoverage-plugin build to check coverage of our project, but error is thrown:

[error] a module is not authorized to depend on itself: org.scoverage#scalac-scoverage-plugin_2.11;1.3.0-RC2

sbt-scoverage plugin version is latest released version, and depends on scalac-scoverage-plugin (latest released version too, different from the snapshot in the build).
Is there a way to workaround this limitation?

Grzegorz Slowikowski
@gslowikowski
Oct 24 2016 08:05
OK, I found one, ugly, workarund - temporarily change organization.
Justin Kaeser
@jastice
Oct 24 2016 12:53
Dale Wijnand
@dwijnand
Oct 24 2016 12:57
there is no sbt-plugin-snapshots
Justin Kaeser
@jastice
Oct 24 2016 13:01
might want to update the doc then :) http://www.scala-sbt.org/0.13/docs/Resolvers.html
Dan Di Spaltro
@dispalt
Oct 24 2016 18:33
any ideas about :point_up: October 23, 2016 2:05 PM
Rafal Wachol
@charafau
Oct 24 2016 18:55
hello. is there any way to download sbt bundled with all dependencies ? building docker images is painfull..
OlegYch
@OlegYch
Oct 24 2016 19:03
no
Shane Delmore
@ShaneDelmore
Oct 24 2016 20:05
I'm having a little trouble understanding how to make sure plugins are enabled. I have a couple of autoplugins, SBT-Docker and Scala Clippy. Is it correct that if I do nothing in my build.sbt they will be enabled?
For all projects in a multi-project build?
ritschwumm
@ritschwumm
Oct 24 2016 20:07
@ShaneDelmore that depends on requires:Plugins and trigger:PluginTrigger of the AutoPlugin
Shane Delmore
@ShaneDelmore
Oct 24 2016 20:07
I can determine that in the source I take it? Will go poke around.
trigger = allRequirements.
ritschwumm
@ritschwumm
Oct 24 2016 20:08
allRequirements means "if everything in requires is there, enable it"
Shane Delmore
@ShaneDelmore
Oct 24 2016 20:09
Now if I were to add to a few specific subprojects .enablePlugins(SbtDocker) would that then disable Clippy (or really any unspecified plugins) for those projects?
Trying to figure out if .enablePlugins is additive, or a replacement basically.
ritschwumm
@ritschwumm
Oct 24 2016 20:20
i'm pretty sure enabling one plugin will not disable another
Shane Delmore
@ShaneDelmore
Oct 24 2016 20:21
Thanks for confirming. I think I figured it out, I have a plugin that loads a file from the project root directory, I was in Intellij, which defaults to compiling in a different directory. That just feels unreasonable to me, but whatever, I checked the please compile like sbt, in the project dir and now the plugin is working again.
I just need to figure out the correct way to locate project root directory in Scala now and I can submit a pr to the plugin project working around this behavior.