Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 22 2015 11:10
    japgolly commented #2066
  • Jun 22 2015 08:25
    keepscoding commented #2044
  • Jun 21 2015 03:24
    xerial commented #157
  • Jun 21 2015 00:10
    eed3si9n unlabeled #2057
  • Jun 21 2015 00:10

    eed3si9n on 0.13

    Adds bundledLauncherProj to all… Remove launcher tests Add unit tests to Travis and 3 more (compare)

  • Jun 21 2015 00:10
    eed3si9n closed #2057
  • Jun 21 2015 00:10

    eed3si9n on fixbuild

    (compare)

  • Jun 20 2015 18:42
    eed3si9n synchronize #2057
  • Jun 20 2015 18:42

    eed3si9n on fixbuild

    Fix typo (compare)

  • Jun 20 2015 18:23

    eed3si9n on fixbuild

    Adds bundledLauncherProj to all… Remove launcher tests Add unit tests to Travis and 1 more (compare)

  • Jun 20 2015 18:23
    eed3si9n synchronize #2057
  • Jun 20 2015 14:59

    eed3si9n on scalaversionbump

    (compare)

  • Jun 20 2015 14:59

    eed3si9n on 0.13

    Bumping up Scala version to 2.1… Try to keep bincompat Fixes #1666 and 1 more (compare)

  • Jun 20 2015 14:59
    eed3si9n unlabeled #2068
  • Jun 20 2015 14:59
    eed3si9n closed #2068
  • Jun 20 2015 14:59
    eed3si9n closed #1666
  • Jun 20 2015 14:57
    eed3si9n commented #2068
  • Jun 20 2015 12:55
    dwijnand commented #2068
  • Jun 20 2015 04:51
    eed3si9n synchronize #2068
  • Jun 20 2015 04:51

    eed3si9n on scalaversionbump

    Fixes #1666 (compare)

eugene yokota
@eed3si9n
i have to go soon, but you could try hacking around basedon this imple - https://github.com/sbt/sbt/issues/3030#issuecomment-295828118
Adelbert Chang
@adelbertc
hm interesting
will take a look, thanks!
Nathan Canning
@ncanning
quick question: is there a way to include library dependencies only for development, similar to ruby's bundler groups?
Sukant Hajra
@shajra
hmm... what is the difference between :== and :=?
Sukant Hajra
@shajra
I'm in the middle of a private[sbt] macro definition now. This is hard to figure out.
Sukant Hajra
@shajra
Okay, I'm back home again, and thinking of this puzzle one last time. Here's where I'm confused. the JvmPlugin according to "sbt -debug" is running before my plugins, and according to the source, it appears to be setting project/compile:scalacOptions and project/test:scalacOptions. Then my plugins after the fact set project/*:scalacOptions, which has a lower precedence in the delegation chain. Why aren't these settings lost?
Sukant Hajra
@shajra
@ncanning I've not heard of people doing that. What kind of dependencies? Something about this request seems odd.
Sukant Hajra
@shajra
I just realized the SBT documentation has a page I haven't read before (probably new with 13.x or something).
Sukant Hajra
@shajra
Yeah, someone pointed me to this earlier, and I think upon a second read, it answers my question: http://www.scala-sbt.org/0.13/docs/Scope-Delegation.html
Sukant Hajra
@shajra
I think I've been hobbling with a really messed up denotation of how the DSL works. I assumed order dependence of settings, but there's only order dependence when there's no delegation (the "old" value is lexically earlier on the page or from a previous plugin). When there's delegation, the order of the settings doesn't matter. Something delegated to can be defined later lexically, or by a downstream plugin.
Dale Wijnand
@dwijnand
That is correct.
Jorge
@jvican
You are looking for units which is in BuildStructure.
val buildStructure = TaskKey[BuildStructure]("build-structure", "Provides access to the build structure, settings, and streams manager.", DTask)
Dale Wijnand
@dwijnand
That's what extracted uses too BTW
Jorge
@jvican
Yes, that's my understanding too
Salar Rahmanian
@softinio
I am using sbt to build my code
in production I want to point to a different logbook.xml than the one I have in resources dir. Any tips how I would do this in my build.sbt?
tried: javaOptions in assembly += "-Dlogback.configurationFile=" + logbackConfigPath
where logbackConfigPath is the path to the logback.xml
and it didnt work
Mark Moore
@MarkRBM
for any of you with many scala services that have many in house developed dependancies how do you manage updates to those dependencies when sbt does not allow any wildcards in the version numbers i.e. you must say 1.0.1 instead of 1.0.x or 1.0.*
just manually making prs to the services bumping their version numbers or is there a plugin or something I am missing?
Anusha Mallampati
@anushaML
Are there any examples of how to use "doFinally" to execute another task? I have an use case where a task definition is to execute a task (task A) and execute the compile task even regardless of task A 's result (there is a good chance task A will fail)
eugene yokota
@eed3si9n
eugene yokota
@eed3si9n
@anushaML good question. tbh, I don't know if doFinally is a documented feature of sbt.
an example I could dig up was from my blog post - http://eed3si9n.com/sequencing-tasks-with-sbt-sequential
Anusha Mallampati
@anushaML
Yeah, unfortunately with sequential execution, if one task fails, the rest are not executed.
eugene yokota
@eed3si9n
you can say foo.result.value
that will return Either to capture the error
Anusha Mallampati
@anushaML
Yes, but I still can seem to be able to run a task (compile) after than
eugene yokota
@eed3si9n
yea. so I guess you can just define a dynamic task with foo.result.value and then compile
Anusha Mallampati
@anushaML
Then compile would not execute* if foo results in a error, no?
eugene yokota
@eed3si9n
if you use .result it should work
Jorge
@jvican
@eed3si9n Great post.
Anusha Mallampati
@anushaML
@eed3si9n will give it a try. thanks!
Nathan Canning
@ncanning
@shajra it's for a bit of a weird project, but scala meta. I'm trying to do some code generation with scalafix, and for debugging purposes, it's nice to have access to scala meta in the sbt console. But I don't really want to include it in my builds, since it's only used for development
The ruby/bundler use cases are a bit more obvious, tools like pry for debugging aren't necessary for production purposes, but are nice to have for development. Not sure if there's anything like pry in scala, but that would be another good use for development only libraries in sbt
Sukant Hajra
@shajra
@ncanning can you just make a separate project that pulls in your dependencies, but one that you don't publish?
I'm about to dig into SBT source/docs... but is there an "inScope" shorthand for inTask(compile)(inConfig(Compile)(...))?
eugene yokota
@eed3si9n
inTask is a short hand for inScope
you can define the scope you want and use inScope or just do what you're already doing
Sukant Hajra
@shajra
I was hoping there was a DSL to create Scopes easily.
like we do with "in"
Wait would it be inScope(This in (Compile, compile)) { ... }?
eugene yokota
@eed3si9n
yea
I prefer ThisScope instead of conflating scope component with a scope