-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
95 lines (83 loc) · 2.64 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
ThisBuild / organization := "com.ironcorelabs"
ThisBuild / scalaVersion := "2.13.10"
lazy val root = (project in file(".")).settings(
name := "ironoxide-scala",
scalacOptions := Seq(
"-deprecation",
"-encoding",
"UTF-8", // yes, this is 2 args
"-feature",
"-unchecked",
"-Xfatal-warnings",
"-Ywarn-unused",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-language:higherKinds",
"-release:8"
),
resolvers ++= Resolver.sonatypeOssRepos("public"),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
libraryDependencies ++= Seq(
"org.scodec" %% "scodec-bits" % "1.1.34",
"com.ironcorelabs" % "ironoxide-java" % "0.16.0",
"org.typelevel" %% "cats-effect" % "3.4.2",
"com.ironcorelabs" %% "cats-scalatest" % "3.1.1" % Test,
"org.scalatest" %% "scalatest" % "3.2.14" % Test
)
)
// HACK: without these lines, the console is basically unusable,
// since all imports are reported as being unused (and then become
// fatal errors).
Compile / console / scalacOptions ~= {
_.filterNot(_.startsWith("-Xlint")).filterNot(_.startsWith("-Ywarn"))
}
Test / console / scalacOptions := (Compile / console / scalacOptions).value
Test / fork := true
Test / envVars := Map("IRONCORE_ENV" -> "stage")
licenses := Seq("AGPL-3.0" -> url("https://www.gnu.org/licenses/agpl-3.0.txt"))
// Add the default sonatype repository setting
publishTo := sonatypePublishTo.value
homepage := Some(url("http://github.com/ironcorelabs/ironoxide-scala"))
publishMavenStyle := true
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
usePgpKeyHex("C7A5C3A6")
pomExtra := (
<scm>
<url>[email protected]:IronCoreLabs/ironoxide-scala.git</url>
<connection>scm:[email protected]:IronCoreLabs/ironoxide-scala.git</connection>
</scm>
<developers>
{
Seq(
("coltfred", "Colt Frederickson"),
("clintfred", "Clint Frederickson"),
("skeet70", "Murph Murphy"),
("ernieturner", "Ernie Turner"),
("bobwall23", "Bob Wall")
).map {
case (id, name) =>
<developer>
<id>{id}</id>
<name>{name}</name>
<url>http://github.com/{id}</url>
</developer>
}
}
</developers>
)
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true),
pushChanges
)