-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
57 lines (51 loc) · 1.96 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
import Dependencies._
Global / onChangedBuildSource := ReloadOnSourceChanges
val Scala212: String = "2.12.20"
val Scala213: String = "2.13.15"
val Scala3: String = "3.5.2"
inThisBuild(
List(
scalaVersion := Scala213,
homepage := Some(url("https://github.com/lambdaworks/scountries/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
organization := "io.lambdaworks",
organizationName := "LambdaWorks",
organizationHomepage := Some(url("https://www.lambdaworks.io/")),
description := "Scala library that provides an enumeration of ISO 3166 codes for countries, along with their subdivisions.",
startYear := Some(2022),
semanticdbEnabled := scalaVersion.value != Scala3, // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision,
scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value),
scalafixDependencies ++= List(
organizeImports
),
developers := List(
Developer(
"lambdaworks",
"LambdaWorks' Team",
"admin@lambdaworks.io",
url("https://github.com/lambdaworks")
)
)
)
)
addCommandAlias("prepare", "fix; fmt")
addCommandAlias("check", "fixCheck; fmtCheck")
addCommandAlias("fix", "scalafixAll")
addCommandAlias("fixCheck", "scalafixAll --check")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fmtCheck", "all scalafmtSbtCheck scalafmtCheckAll")
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
lazy val root = (project in file("."))
.settings(
name := "scountries",
crossScalaVersions := List(Scala212, Scala213, Scala3),
libraryDependencies ++= List(
enumeratum,
scalaTest
),
scalacOptions ++= List(
"-Ywarn-unused"
)
)