These are chat archives for sbt/sbt

20th
May 2016
Wizziee
@WizzieP
May 20 2016 13:31
Hi, I'm creating a multi-project build - "evaluator" project and "calculator" project, where the latter uses the former to work. Everything works nice, refreshing sbt creates folders in evaluator/src and calculator/src, but it also creates "src" folder in main (root) directory. Why is that? How can I avoid that?
or maybe should i use root project as aggregate? i'm just starting out with sbt
Dale Wijnand
@dwijnand
May 20 2016 13:41
yeah use the root project as the aggregate is very common
Perry
@pfn
May 20 2016 13:44
@mdedetrich sbt-doge
@WizzieP, sbt doesn't create src folders
Wizziee
@WizzieP
May 20 2016 13:51
hmm, I'm clicking "refresh" in IntelliJ when build.sbt changes - isn't that running some sbt task?
@pfn
Dale Wijnand
@dwijnand
May 20 2016 13:51
it's an option in intellij, not sbt itself
Wizziee
@WizzieP
May 20 2016 13:54
oh, I should report it to JetBrains I think
thanks guys ;)
Dale Wijnand
@dwijnand
May 20 2016 13:54
there's nothing to report
sbt will always create a root project
Edmondo Porcu
@edmondo1984
May 20 2016 13:55
Hello, I have multiple independent projects and I would like them to share some common settings (i.e. scalaVersion, akka library version, etc)
what's the idiomatic way of doing it?
Wizziee
@WizzieP
May 20 2016 13:55
Check out my code above :P
Edmondo Porcu
@edmondo1984
May 20 2016 13:56
@WizzieP that works because you have a single build
I don't
Wizziee
@WizzieP
May 20 2016 13:56
@dwijnand so I should just keep empty "src" in my root project?
Perry
@pfn
May 20 2016 14:05
@WizzieP, don't check create source roots in intellij when importing
Dale Wijnand
@dwijnand
May 20 2016 15:01
what Perry said
Wizziee
@WizzieP
May 20 2016 15:06
thanks
Dhruve Ashar
@dhruve
May 20 2016 16:28
Hello Friends
I am trying to include a dynamically generated resource in my jar file, however I am observing a strange behavior.
If I run a clean, the file doesn't get included in the jar. But on the subsequent runs it does get included in the jar.
This is a multi-build project.
Does anybody have an idea about this issue?
Perry
@pfn
May 20 2016 16:59
put the generation into resourceGenerators
Joseph Price
@joprice
May 20 2016 16:59
i’m getting "Unable to reparse...” when resolving a snapshot that exists in multiple resolvers. the intent is to have the local one be resolved, but it ends up choosing the remove over the local. am i missing something in my sbt configuration?
Dhruve Ashar
@dhruve
May 20 2016 17:48
@pfn the generation uses resourceGenerators
Perry
@pfn
May 20 2016 17:56
then make sure it's depended upon by packageBin or wherever it's missing
Dhruve Ashar
@dhruve
May 20 2016 18:02
I am not sure how packageBin would help here.
The file does get picked up, but only in the subsequent runs.
Dale Wijnand
@dwijnand
May 20 2016 18:03
packageBin builds the jar, at least typically
Dhruve Ashar
@dhruve
May 20 2016 18:04
so its building the jar, dumping it in the right directory under target. But it somehow doesn't pick it up after clean.
According to my understanding, if I have the task hooked up with resourceGenerator in compile and also point to the correct unmanagedResourceDirectory, it should bundle it up. Because it does so for static files.
Edmondo Porcu
@edmondo1984
May 20 2016 18:06
Going back to my previous answer, I would need to share some libraryDependencies and some settings between unrelated projects just to ensure all my projects have the same akkaVersion or things like that.
what's the right way to do it?