These are chat archives for sbt/sbt

1st
Jul 2016
Joe Adams
@joe-adams
Jul 01 2016 05:03
Can you run Maven builds through sbt? Can you do Osgi in sbt?
Joe Adams
@joe-adams
Jul 01 2016 11:03
Thanks! I was having trouble getting osgi to work in gradle but it might work better in sbt.
More and more scala is my swiss army knife.
Especially because Groovy stopped working on my work computer.
Gergő Törcsvári
@tg44
Jul 01 2016 12:07
how can i pack my project (maven style) with non empty sources jar?
I have this publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository"))) and the publish is runing smoothly, but I can't find in the docs how can I include the sources to the sources.jar
Simon Hafner
@reactormonk
Jul 01 2016 12:33
There's publishLocal for local publish, and pretty sure you have some variable in the publish task you can use to tell it to also publish the sources
Shane Delmore
@ShaneDelmore
Jul 01 2016 16:56
@tpolecat Not sure if I understood your question correctly but I know sbt-header does manipulation of files in sbt with regex. https://github.com/sbt/sbt-header/blob/master/src/main/scala/de/heikoseeberger/sbtheader/HeaderCreator.scala
Rob Norris
@tpolecat
Jul 01 2016 16:57
@ShaneDelmore thanks I'll take a look
Perry
@pfn
Jul 01 2016 19:47
how do I reference *:libraryDependencies from inConfig(x) ?
in (thisProjectRef, Global) ?
Perry
@pfn
Jul 01 2016 19:52
nope...
Dale Wijnand
@dwijnand
Jul 01 2016 19:55
in Global, but you're running into the fact that inConfig maps the keys on the RHS
avoid inConfig or right your own that doesn't do that
(avoid inConfig for this use case, not in general)
Perry
@pfn
Jul 01 2016 19:57
libraryDependencies in Default seems to do what I need
Dale Wijnand
@dwijnand
Jul 01 2016 19:57
:o what's Default
Perry
@pfn
Jul 01 2016 19:58
Default = config("default")
Dale Wijnand
@dwijnand
Jul 01 2016 19:58
what does it mean?
Perry
@pfn
Jul 01 2016 19:58
and I assume it maps to *:key
otherwise, I would expect sbt to throw an unknown reference error resolving for me
Dale Wijnand
@dwijnand
Jul 01 2016 19:59
TIL
Perry
@pfn
Jul 01 2016 19:59
maybe I'm wrong in my assumption
[info] Dependencies:
[info] default:libraryDependencies
nope, not correct
I guess I'll just change it to in (This,This,This,This)
Dale Wijnand
@dwijnand
Jul 01 2016 20:04
still going to be changed
inConfig calls Project.transform and that calls mapReferenced (the referenced keys on the RHS): https://github.com/sbt/sbt/blob/v0.13.11/main/src/main/scala/sbt/Project.scala#L387-L390
Perry
@pfn
Jul 01 2016 23:53
in this case, it's not exactly inConfig that it's running in