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
using sbt 1 with addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.10")
scalafmtOnCompile := true
Suppose we have a multi-project build where utilLogging project supports Scala 2.10 and 2.12 but utilCache supports only 2.12 and that utilCache depends on utilLogging.
+compile
problem
During the + cycle, onLoad hook gets triggered even when scalaVersions do not match up, calling utilCache/update. This causes resolution error saying utilLogging_2.12 can't be found from external resolvers.
expectation
No errors.
notes
The following workaround seems to work for me:
inThisBuild(
Seq(
scalafmtOnCompile :=true,
scalafmtOnCompile in Sbt:=false,
)),
The text was updated successfully, but these errors were encountered:
steps
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.10")
scalafmtOnCompile := true
utilLogging
project supports Scala 2.10 and 2.12 bututilCache
supports only 2.12 and thatutilCache
depends onutilLogging
.+compile
problem
During the
+
cycle, onLoad hook gets triggered even when scalaVersions do not match up, callingutilCache/update
. This causes resolution error sayingutilLogging_2.12
can't be found from external resolvers.expectation
No errors.
notes
The following workaround seems to work for me:
The text was updated successfully, but these errors were encountered: