Reformat with scalafmt 3.0.0

This commit is contained in:
Scala Steward
2021-08-19 08:50:30 +02:00
parent 5a2a0295ef
commit e4fecefaea
127 changed files with 558 additions and 658 deletions

View File

@ -271,8 +271,8 @@ object Dependencies {
"org.typelevel" %% "munit-cats-effect-3" % MUnitCatsEffectVersion
)
val kindProjectorPlugin = "org.typelevel" %% "kind-projector" % KindProjectorVersion
val betterMonadicFor = "com.olegpy" %% "better-monadic-for" % BetterMonadicForVersion
val kindProjectorPlugin = "org.typelevel" %% "kind-projector" % KindProjectorVersion
val betterMonadicFor = "com.olegpy" %% "better-monadic-for" % BetterMonadicForVersion
val webjars = Seq(
"org.webjars" % "swagger-ui" % SwaggerUIVersion,

View File

@ -3,17 +3,16 @@ package docspell.build
import sbt.{Def, _}
import sbt.Keys._
/** Take some files from dependencies and put them into the resources
* of a local sbt project.
/** Take some files from dependencies and put them into the resources of a local sbt
* project.
*
* The reason is that the stanford ner model files are very very
* large: the jar file for the english models is about 1G and the jar
* file for the german models is about 170M. But I only need one file
* that is about 60M from each jar. So just for the sake to save 1GB
* file size when packaging docspell, this ugly plugin exists….
* The reason is that the stanford ner model files are very very large: the jar file for
* the english models is about 1G and the jar file for the german models is about 170M.
* But I only need one file that is about 60M from each jar. So just for the sake to save
* 1GB file size when packaging docspell, this ugly plugin exists….
*
* The jar files to filter must be added to the libraryDependencies
* in config "NerModels".
* The jar files to filter must be added to the libraryDependencies in config
* "NerModels".
*/
object NerModelsPlugin extends AutoPlugin {

View File

@ -6,9 +6,8 @@ import scala.sys.process._
/** Integrates the tailwind build into sbt.
*
* It assumes the required config (postcss.conf.js,
* tailwind.config.js) files in the base directory. It requires to
* have nodejs installed and the npx command available (or
* It assumes the required config (postcss.conf.js, tailwind.config.js) files in the base
* directory. It requires to have nodejs installed and the npx command available (or
* configured).
*/
object StylesPlugin extends AutoPlugin {
@ -43,7 +42,7 @@ object StylesPlugin extends AutoPlugin {
"META-INF" / "resources" / "webjars" / name.value / version.value,
stylesNpxCommand := "npx",
stylesNpmCommand := "npm",
stylesMode := StylesMode.Dev,
stylesMode := StylesMode.Dev,
stylesBuild := {
val logger = streams.value.log
val npx = stylesNpxCommand.value
@ -98,7 +97,7 @@ object StylesPlugin extends AutoPlugin {
Seq(
npx,
"postcss",
s"${inDir}/*.css",
s"$inDir/*.css",
"-o",
target.absolutePath,
"--env",

View File

@ -28,9 +28,9 @@ object ZolaPlugin extends AutoPlugin {
def zolaSettings: Seq[Setting[_]] =
Seq(
zolaRootDir := baseDirectory.value / "site",
zolaOutputDir := target.value / "zola-site",
zolaCommand := "zola",
zolaRootDir := baseDirectory.value / "site",
zolaOutputDir := target.value / "zola-site",
zolaCommand := "zola",
zolaTestBaseUrl := "http://localhost:1234",
zolaBuild := {
val logger = streams.value.log