Reformat with scalafmt 3.9.9

Executed command: scalafmt --non-interactive
This commit is contained in:
Scala Steward
2025-08-02 18:15:24 +00:00
parent 4f40bff14d
commit 8c93d107a0
4 changed files with 16 additions and 16 deletions
+7 -7
View File
@@ -12,13 +12,13 @@ lazy val root = Project("lila", file("."))
.aggregate(api)
.settings(buildSettings)
organization := "org.lichess"
organization := "org.lichess"
Compile / run / fork := true
javaOptions ++= Seq("-Xms64m", "-Xmx512m", "-Dlogger.file=conf/logger.dev.xml")
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
ThisBuild / usePipelining := false
// shorter prod classpath
scriptClasspath := Seq("*")
scriptClasspath := Seq("*")
Compile / resourceDirectory := baseDirectory.value / "conf"
// the following settings come from the PlayScala plugin, which I removed
shellPrompt := PlayCommands.playPrompt
@@ -26,7 +26,7 @@ shellPrompt := PlayCommands.playPrompt
playDependencyClasspath := (Runtime / externalDependencyClasspath).value
// playCommonClassloader := PlayCommands.playCommonClassloaderTask.value
// playCompileEverything := PlayCommands.playCompileEverythingTask.value.asInstanceOf[Seq[Analysis]]
ivyLoggingLevel := UpdateLogging.DownloadOnly
ivyLoggingLevel := UpdateLogging.DownloadOnly
Compile / mainClass := Some("lila.app.Lila")
// Adds the Play application directory to the command line args passed to Play
bashScriptExtraDefines += "addJava \"-Duser.dir=$(realpath \"$(cd \"${app_home}/..\"; pwd -P)\" $(is_cygwin && echo \"fix\"))\"\n"
@@ -36,10 +36,10 @@ Compile / RoutesKeys.routes / sources ++= {
}
Compile / RoutesKeys.generateReverseRouter := false
Compile / RoutesKeys.generateForwardRouter := true
target := baseDirectory.value / "target"
Compile / sourceDirectory := baseDirectory.value / "app"
Compile / scalaSource := baseDirectory.value / "app"
Universal / sourceDirectory := baseDirectory.value / "dist"
target := baseDirectory.value / "target"
Compile / sourceDirectory := baseDirectory.value / "app"
Compile / scalaSource := baseDirectory.value / "app"
Universal / sourceDirectory := baseDirectory.value / "dist"
// format: off
libraryDependencies ++= akka.bundle ++ playWs.bundle ++ macwire.bundle ++ scalalib.bundle ++ chess.bundle ++ Seq(
+5 -5
View File
@@ -5,7 +5,7 @@ object BuildSettings {
import Dependencies._
val lilaVersion = "4.0"
val lilaVersion = "4.0"
val globalScalaVersion = "3.7.2"
def buildSettings =
@@ -14,9 +14,9 @@ object BuildSettings {
scalaVersion := globalScalaVersion,
scalacOptions ++= compilerOptions,
javacOptions ++= Seq("--release", "21"),
organization := "org.lichess",
version := lilaVersion,
Compile / doc / sources := Seq.empty,
organization := "org.lichess",
version := lilaVersion,
Compile / doc / sources := Seq.empty,
Compile / packageDoc / publishArtifact := false,
Compile / packageSrc / publishArtifact := false
)
@@ -64,7 +64,7 @@ object BuildSettings {
val srcMain = Seq(
Compile / scalaSource := (Compile / sourceDirectory).value,
Test / scalaSource := (Test / sourceDirectory).value
Test / scalaSource := (Test / sourceDirectory).value
)
def projectToRef(p: Project): ProjectReference = LocalProject(p.id)
+2 -2
View File
@@ -15,9 +15,9 @@ object I18n {
outputDir.mkdirs()
val files = locales.map { locale =>
val file = new File(outputDir, s"i18n.$locale.ser")
val file = new File(outputDir, s"i18n.$locale.ser")
val translations = makeMap(locale, sourceDir, destDir, dbs.asJava)
val out = new ObjectOutputStream(new FileOutputStream(file))
val out = new ObjectOutputStream(new FileOutputStream(file))
out.writeObject(translations)
out.close()
file
+2 -2
View File
@@ -2,5 +2,5 @@ resolvers += Resolver.url(
"lila-maven-sbt",
url("https://raw.githubusercontent.com/lichess-org/lila-maven/master")
)(Resolver.ivyStylePatterns)
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.18-lila_1.26") // scala2 branch
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.18-lila_1.26") // scala2 branch
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")