These are chat archives for sbt/sbt

18th
May 2016
Perry
@pfn
May 18 2016 00:36
[error] 394 errors found
[error] (sbt/compile:compileIncremental) Compilation failed
heh, only 394 errors trying to build
Perry
@pfn
May 18 2016 00:44
yeah, not gonna try 1.0.0 for a while...
Viacheslav Blinov
@dant3
May 18 2016 04:00
does scripted output some junit.xml formatted report? is there any options for that?
Simon Hafner
@reactormonk
May 18 2016 09:59
How can I redirect the output of a task to a file?
Denis Rosca
@denisrosca
May 18 2016 11:20
Hello guys,
Does SBT have something similar to the Gradle Wrapper?
I would like to be able to run a SBT build on the CI server without actually installing it beforehand.
Dmytro Aleksandrov
@alkersan
May 18 2016 12:03
@denisrosca kind off. look here https://github.com/paulp/sbt-extras/blob/master/sbt . This is a self-downloading sbt launcher script
Olivier Blanvillain
@OlivierBlanvillain
May 18 2016 13:15

Hi, I'm looking for way to do a fine grained watch with sbt. My goal is to define something like ~work which does the following:

  • Triggers server/re-start on server/**.scala changes
  • Triggers client/fastOptJS on client/**.scala changes

The closest I could get is with something like ~;server/re-start;client/fastOptJS with the appropriate watchSources, but this unnecessarily call server/re-start even if I only change stuff in client...

OlegYch
@OlegYch
May 18 2016 13:41
i think you'll have to run two sbt instances, and be careful to not make them stamp on each other
Perry
@pfn
May 18 2016 14:09
@denisrosca, paulp launcher script is much better than gradle wrapper
eugene yokota
@eed3si9n
May 18 2016 14:44
the sbt launcher is already like Gradle wrapper without sbt-extra, you put in the version number in build.properties and it will download the right modules from the right resolver
for example, if you're using the vanilla launcher and changed build.properties you can try sbt 1.0.0-M4 with just changing the file, but it won't work for sbt-extra so I had to write a separate instruction for Travis CI
OlegYch
@OlegYch
May 18 2016 14:59
this is my "launcher" http://pastebin.com/SGNkraBs
Denis Rosca
@denisrosca
May 18 2016 16:48
thanks guys, I'll give the launcher a try.
vadimich
@vadimich
May 18 2016 17:32
trying to get spray.io and doobie to live in the same project. both use shapeless but doobie uses 2.2.5 and spray 1.3.1 and the eviction policy kicks out 1.3.1 and my legacy code for directives no longer compiles :( . I am trying to use force() and conflicManager policies but still getting the same issue (latest shapeless 2.2.5 is used in spray where 1.3.1 version is expected). So before going too deep can someone help out with a quick suggestion?
greatly appriciated!
OlegYch
@OlegYch
May 18 2016 17:57
you need to use a spray version compatible with shapeless 2.2
no evictions will help
vadimich
@vadimich
May 18 2016 18:15
@OlegYch I cannot force spray to continue with its compattible shapeless version and doobie to use its own compatible shapeless version?
via SBT
OlegYch
@OlegYch
May 18 2016 18:17
no
classpath can only contain one version of a class
vadimich
@vadimich
May 18 2016 18:17
that makes sense :)
so i would have to either find the correct spray or recompile it with a new dependency
?
OlegYch
@OlegYch
May 18 2016 18:18
yep
Mark Schaake
@markschaake
May 18 2016 18:18
Is it possible to remove a task's dependency? I have a task that depends on another. I'd like to remove that dependency. Sorry if this isn't the right place to ask this sort of question
vadimich
@vadimich
May 18 2016 18:26
@OlegYch thank you very much
there is spray-routing-shapeless2 just for my problem
sorry for a silly question
OlegYch
@OlegYch
May 18 2016 18:28
no worries
in theory you could use eg osgi to have hierarchical classpath, but it's usually too much of a hassle
vadimich
@vadimich
May 18 2016 18:47
I was actually hoping that sbt somehow can sandbox class paths if it needs to
alas