-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
57 lines (42 loc) · 1.36 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
ThisBuild / tlBaseVersion := "0.9"
ThisBuild / tlCiReleaseBranches := Seq("master")
enablePlugins(ScalaJSPlugin)
enablePlugins(TzdbPlugin)
enablePlugins(LocalesPlugin)
import locales._
Global / onChangedBuildSource := IgnoreSourceChanges
Global / resolvers ++= Resolver.sonatypeOssRepos("public")
val zonesFilterFn = { (z: String) => z == "America/Santiago" || z == "Pacific/Honolulu" }
zonesFilter := zonesFilterFn
dbVersion := TzdbPlugin.Version("2022a")
cldrVersion := CLDRVersion.Version("38.1")
localesFilter := LocalesFilter.Selection("en-US")
supportNumberFormats := false
crossScalaVersions := Seq("2.13.8", "3.2.1")
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time" % "2.5.0"
)
libraryDependencies ++= {
val sv = scalaBinaryVersion.value
if (sv.startsWith("3"))
// https://github.com/portable-scala/portable-scala-reflect/issues/23
Seq(
"org.portable-scala" % "portable-scala-reflect_sjs1_2.13" % "1.1.2"
)
else
Seq(
"org.portable-scala" %%% "portable-scala-reflect" % "1.1.2"
)
}
inThisBuild(
Seq(
organization := "edu.gemini",
homepage := Some(url("https://github.com/gemini-hlsw/gemini-locales"))
) ++ lucumaPublishSettings
)
// doesn't work to do this `inThisBuild`
lazy val commonSettings = Seq(
Compile / doc / scalacOptions --= Seq(
"-Xfatal-warnings"
)
)