-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
48 lines (43 loc) · 1.4 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
import org.typelevel.scalacoptions.ScalacOptions
ThisProject / publish / skip := true
// Publish config
inThisBuild(
Seq(
organization := "io.github.enriquerodbe",
homepage := Some(url("https://github.com/enriquerodbe/borsh4s")),
licenses := Seq(License.CC0),
developers := List(
Developer(
"enriquerodbe",
"Enrique Rodríguez",
url("https://github.com/enriquerodbe")
)
),
versionScheme := Some(VersionScheme.EarlySemVer),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
)
)
lazy val borsh4s =
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("."))
.settings(
name := "borsh4s",
scalaVersion := "3.5.2",
// Dependencies
libraryDependencies ++= Seq(
"com.softwaremill.magnolia1_3" %%% "magnolia" % "1.3.8",
"org.scalameta" %%% "munit" % "1.0.2" % Test
),
// Lint config
tpolecatScalacOptions +=
ScalacOptions.languageFeatureOption("strictEquality"),
Compile / compile / wartremoverErrors ++=
Warts.allBut(Wart.Any, Wart.Nothing),
coverageFailOnMinimum := true,
// There are 2 lines in Borsh4s.scala that don't get reported
coverageMinimumStmtTotal := 98.76,
coverageMinimumBranchTotal := 100
)