-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
74 lines (60 loc) · 2.33 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import org.typelevel.scalacoptions.ScalacOptions
name := "signalement-api"
organization := "fr.gouv.beta"
version := "1.3.13"
scalaVersion := "2.13.15"
lazy val `signalement-api` = (project in file(".")).enablePlugins(PlayScala)
libraryDependencies ++= Seq(
ws,
ehcache,
compilerPlugin(scalafixSemanticdb)
) ++ Dependencies.AppDependencies
//scalafmtOnCompile := true
scalacOptions ++= Seq(
"-explaintypes",
"-Ywarn-macros:after",
"-release:17",
"-Wconf:cat=unused-imports&src=views/.*:s",
"-Wconf:cat=unused:info",
s"-Wconf:src=${target.value}/.*:s",
"-Yrangepos"
// "-quickfix:any" // should we enable it by default to replace scalafix rule ExplicitResultTypes ? No because we need to disable this rule sometimes
)
routesImport ++= Seq(
"models.UserRole",
"models.website.IdentificationStatus",
"models.report.ReportFileOrigin",
"java.time.OffsetDateTime",
"models.investigation.InvestigationStatus",
"models.website.WebsiteId",
"models.engagement.EngagementId",
"utils.SIRET",
"models.report.reportfile.ReportFileId",
"models.report.ReportResponseType",
"models.report.delete.ReportAdminActionType",
"models.PublicStat",
"controllers.IdentificationStatusQueryStringBindable",
"controllers.WebsiteIdPathBindable",
"controllers.UUIDPathBindable",
"controllers.OffsetDateTimeQueryStringBindable",
"controllers.SIRETPathBindable",
"controllers.ReportFileIdPathBindable",
"controllers.ReportResponseTypeQueryStringBindable",
"controllers.ReportAdminActionTypeQueryStringBindable",
"controllers.ReportFileOriginQueryStringBindable",
"controllers.PublicStatQueryStringBindable"
)
semanticdbVersion := scalafixSemanticdb.revision
scalafixOnCompile := true
Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement
Test / tpolecatExcludeOptions += ScalacOptions.lintMissingInterpolator
resolvers += "Atlassian Releases" at "https://packages.atlassian.com/maven-public/"
Universal / mappings ++=
(baseDirectory.value / "appfiles" * "*" get) map
(x => x -> ("appfiles/" + x.getName))
Test / javaOptions += "-Dconfig.resource=test.application.conf"
javaOptions += "-Dpekko.http.parsing.max-uri-length=16k"
javaOptions += s"-Dtextlogs=${sys.env.getOrElse("USE_TEXT_LOGS", "false")}"
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)