These are chat archives for sbt/sbt

19th
Nov 2015
Sam Halliday
@fommil
Nov 19 2015 11:36
@dwijnand disabling main detection that way didn't work :-(
Dale Wijnand
@dwijnand
Nov 19 2015 11:36
boo :(
Dale Wijnand
@dwijnand
Nov 19 2015 12:02
thanks @leipie
John Murray
@JohnMurray
Nov 19 2015 15:54
Is there any limitation on AutoPlugins and the keys that they can override? I tried setting one up to define resourceDirectory in Compile := ... but it seems to always use the value defined in Defaults.scala.
Dale Wijnand
@dwijnand
Nov 19 2015 15:59
not that I know of, I'd recommend testing in a test project build using inspect resourceDirectory / inspect compile:resourceDirectory to figure out who is defining what, where
John Murray
@JohnMurray
Nov 19 2015 16:01
So I did that, and I keep seeing the it say defined at Defaults.scala:194
for both resourceDirectory and compile:resourceDirectory
Dale Wijnand
@dwijnand
Nov 19 2015 16:03
Can't reproduce it..
resourceDirectory in Compile := file("/tmp/a")
> show compile:resourceDirectory
[info] /tmp/a
John Murray
@JohnMurray
Nov 19 2015 16:26
okay, something I'm missing on my end then. thanks
Dale Wijnand
@dwijnand
Nov 19 2015 16:29
np
John Murray
@JohnMurray
Nov 19 2015 16:29
The only thing I can think of now is that the project in question is part of a multi-project build
Ahmad Salim Al-Sibahi
@ahmadsalim
Nov 19 2015 16:37
Is there a way to avoid that ^C exists sbt when cancelling evaluation?
John Murray
@JohnMurray
Nov 19 2015 16:39
I think ^D works in most cases for that
@dwijnand this reproduces my issue: https://gist.github.com/JohnMurray/8e2643daac4d2c3c808e
Dale Wijnand
@dwijnand
Nov 19 2015 16:43
make MyPlugin require JvmPlugin
common pitfall: sbt/sbt#2082
John Murray
@JohnMurray
Nov 19 2015 16:45
that worked. thanks
Thanks for the link, had no idea this was required. I think this will solve many of my woes. lol
Dale Wijnand
@dwijnand
Nov 19 2015 16:46
np
Ahmad Salim Al-Sibahi
@ahmadsalim
Nov 19 2015 16:50
@JohnMurray so I can cancel evaluation with ^D without exiting sbt?
Perry
@pfn
Nov 19 2015 17:02
Running gradle-build / viewserver
[success] Total time: 828 s, completed Nov 19, 2015 8:36:50 AM
oy, I wish scripted tests didn't take forever
John Murray
@JohnMurray
Nov 19 2015 19:34
@ahmadsalim - Well it works for run at least. Not sure about other tasks.
Ahmad Salim Al-Sibahi
@ahmadsalim
Nov 19 2015 19:37
@JohnMurray Thanks
Eric K Richardson
@ekrich
Nov 19 2015 21:53
@dwijnand So require JvmPlugin - like this? override def requires = JvmPlugin
Dale Wijnand
@dwijnand
Nov 19 2015 21:55
Yep
Eric K Richardson
@ekrich
Nov 19 2015 21:59
Lower down in the Plugin docs page it shows the above and talks about order.