I would like to run a scalafmtCheck
in sbt assembly
. I tried to add:
(compile in Compile) := ((compile in Compile) dependsOn scalafmtCheck).value
I got that error :
[error] References to undefined settings:
[error]
[error] submissions / scalafmtCheck from submissions / Compile / compile (/home/yass/Documents/Invenis/iss/build.sbt:45)
[error] Did you mean submissions / Compile / scalafmtCheck ?
[error]
[error] scalafmtCheck from Compile / compile (/home/yass/Documents/Invenis/iss/build.sbt:45)
[error] Did you mean Compile / scalafmtCheck ?
[error]
Any idea ?