Skip to content

Commit

Permalink
Clean up build definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed May 6, 2024
1 parent c611a7d commit c8c7952
Show file tree
Hide file tree
Showing 20 changed files with 69 additions and 61 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
127 changes: 69 additions & 58 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,65 +1,76 @@
name := "lila-search"

version := "2.0"

scalaVersion := "2.13.14"
inThisBuild(
Seq(
scalaVersion := "2.13.14",
versionScheme := Some("early-semver"),
version := "3.0.0-SNAPSHOT",
run / fork := true,
run / javaOptions += "-Dconfig.override_with_env_vars=true",
Compile / doc / sources := Seq.empty,
Compile / packageDoc / publishArtifact := false,
Compile / packageSrc / publishArtifact := false,
resolvers += "lila-maven" at "https://raw.githubusercontent.com/ornicar/lila-maven/master"
)
)

lazy val `lila-search` = project
.in(file("."))
lazy val app = project
.in(file("app"))
.enablePlugins(PlayScala)
.disablePlugins(PlayFilters)
.settings(
name := "lila-search",
organization := "org.lichess",
name := "lila-search",
libraryDependencies ++= Seq(
"com.github.ornicar" %% "scalalib" % "7.1.0",
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % "7.17.4",
"com.typesafe.play" %% "play-json" % "2.9.4",
"com.typesafe.play" %% "play-json-joda" % "2.9.4"
),
scalacOptions ++= Seq(
"-explaintypes",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-Ymacro-annotations",
// Warnings as errors!
// "-Xfatal-warnings",
// Linting options
"-unchecked",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:deprecation",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Wdead-code",
"-Wextra-implicit",
"-Wnumeric-widen",
"-Wunused:imports",
"-Wunused:locals",
"-Wunused:patvars",
"-Wunused:privates",
"-Wunused:implicits",
"-Wunused:params"
/* "-Wvalue-discard" */
),

Compile / doc / sources := Seq.empty
Compile / packageDoc / publishArtifact := false
Compile / packageSrc / publishArtifact := false
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
)

scalacOptions ++= Seq(
"-explaintypes",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-language:postfixOps",
"-Ymacro-annotations",
// Warnings as errors!
// "-Xfatal-warnings",
// Linting options
"-unchecked",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:constant",
"-Xlint:delayedinit-select",
"-Xlint:deprecation",
"-Xlint:inaccessible",
"-Xlint:infer-any",
"-Xlint:missing-interpolator",
"-Xlint:nullary-unit",
"-Xlint:option-implicit",
"-Xlint:package-object-classes",
"-Xlint:poly-implicit-overload",
"-Xlint:private-shadow",
"-Xlint:stars-align",
"-Xlint:type-parameter-shadow",
"-Wdead-code",
"-Wextra-implicit",
"-Wnumeric-widen",
"-Wunused:imports",
"-Wunused:locals",
"-Wunused:patvars",
"-Wunused:privates",
"-Wunused:implicits",
"-Wunused:params"
/* "-Wvalue-discard" */
)

libraryDependencies ++= Seq(
"com.github.ornicar" %% "scalalib" % "7.1.0",
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % "7.17.4",
"com.typesafe.play" %% "play-json" % "2.9.4",
"com.typesafe.play" %% "play-json-joda" % "2.9.4"
)

resolvers += "lila-maven" at "https://raw.githubusercontent.com/ornicar/lila-maven/master"
lazy val root = project
.in(file("."))
.aggregate(app)

// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
Binary file removed public/images/favicon.png
Binary file not shown.
3 changes: 0 additions & 3 deletions public/javascripts/hello.js

This file was deleted.

Empty file removed public/stylesheets/main.css
Empty file.

0 comments on commit c8c7952

Please sign in to comment.