These are chat archives for sbt/sbt

17th
Aug 2015
Nikolai Obedin
@dancingrobot84
Aug 17 2015 13:13
Hi guys. It seems like there is an error in sbt-launch.jar manifest for 0.13.9. Its Implementation-Version field is 1.0.0-M1 instead of 0.13.9
Josh Suereth
@jsuereth
Aug 17 2015 13:27
@dancingrobot84 Actually, it's the 1.0.0-M1 launcher
Erik Bakker
@eamelink
Aug 17 2015 13:27
Nice :)
Nikolai Obedin
@dancingrobot84
Aug 17 2015 13:40
@jsuereth So everything's ok? I thought it's just a bit odd that artifact has version 0.13.9, but its implementation version differs
Josh Suereth
@jsuereth
Aug 17 2015 13:45
Yeah, the idea behind the 1.0 launcher is it's generic
and it can be re-embedded by others (e.g. conscript)
SO, it's the sbt 0.13.9 launcher package but it's the 1.0 launcher implementation
kevinwright
@kevinwright
Aug 17 2015 13:46
Everything got all grown up and sensible since those days when I was proud to be using the “rebel cut"
Nikolai Obedin
@dancingrobot84
Aug 17 2015 13:52
@jsuereth Ok, thanks for explanation
Perry
@pfn
Aug 17 2015 14:48
is there a lazy form of ".value" that can be used to evaluate a task only when desired? or am I only able to do that using State/Extracted.runTask
Dale Wijnand
@dwijnand
Aug 17 2015 15:23
Not sure, but have you played with Def.taskDyn?
Perry
@pfn
Aug 17 2015 17:03
I haven't, what's taskDyn do
Perry
@pfn
Aug 17 2015 17:09
hmm, so my plugin has a globalSettings = onLoad.value andThen (...) which invokes several tasks... in my project's build.sbt, I override some of those tasks, but it doesn't seem to take effect, why?

  override def globalSettings = (onLoad := onLoad.value andThen { s =>
    val e = Project.extract(s)
    val refs = e.currentRef +: e.currentProject.referenced collect {
      case ref if e.getOpt(projectLayout in (ref, Android)).isDefined => ref
    }
    val s2 = if (refs.nonEmpty) {
      e.runTask(updateCheck in (refs.head,Android), s)._1
    } else s

    refs.foldLeft(s2) { (s, ref) =>
      e.runTask(antLayoutDetector in (ref,Android), s)._1
    }
  }) :: Nil
however, in my project, I set antLayoutDetector in Android := ()
but it still runs...
Dale Wijnand
@dwijnand
Aug 17 2015 17:29
Trevor Bortins
@wulftone
Aug 17 2015 17:59
Hey all, I'm trying to get my spray project (on spray-can) running as a fat-jar daemon with kamon and newrelic using sbt-assembly, but it's complaining about aspectj-weaver being missing (it works fine with sbt run). I've tried this gobbledegook: https://gist.github.com/colestanfield/fac042d3108b0c06e952 but I still get the warning when starting my daemon. If anyone can point me in the right direction, that'd be swell
Perry
@pfn
Aug 17 2015 18:55
@dwijnand so, taskDyn looks interesting, but does Def.task have to be specified internally in each? that's kinda lame?
can't just reference a taskkey?
I guess I can Def.task { dependentTask.value } though
thanks
pfn @pfn ponders his onLoad problem now
Dale Wijnand
@dwijnand
Aug 17 2015 18:56
np, sorry I've not played with it personally, just seen it about