You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the idiomatic way to run scapegoat automatically on compile? ie. I want sbt compile to run scapegoat.
I tried adding this in my build.sbt:
compile in Compile := (compile in Compile).dependsOn(scapegoat).value
This works, however, it compiles all classes twice - once in target/scala-2.11/scapegoat-classes and once in target/scala-2.11/classes. Is there a better way?
The text was updated successfully, but these errors were encountered:
This is back-of-the-napkin converted from something similar we're using for another liner:
(compile in Compile) :=Def.taskDyn {
valc= (compile in Compile).value
Def.task {
(scapegoat in Compile).toTask("").value
c
}
}.value
(compile in Test) :=Def.taskDyn {
valc= (compile in Test).value
Def.task {
(scapegoat in Test).toTask("").value
c
}
}.value
What's the idiomatic way to run scapegoat automatically on compile? ie. I want
sbt compile
to run scapegoat.I tried adding this in my build.sbt:
This works, however, it compiles all classes twice - once in
target/scala-2.11/scapegoat-classes
and once intarget/scala-2.11/classes
. Is there a better way?The text was updated successfully, but these errors were encountered: