-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
94 lines (80 loc) · 2.71 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
enablePlugins(Scalac)
scalaVersion := "2.13.5"
normalizedName := "scaloi"
name := "ScaLOI"
description := "Fyne thyngges from Learning Objects, an LO Venture"
organization := "com.learningobjects"
homepage := Some(url("https://github.com/learningobjectsinc/scaloi"))
scmInfo := Some(ScmInfo(url("https://github.com/learningobjectsinc/scaloi"), "[email protected]:learningobjectsinc/scaloi.git"))
organizationName := "Learning Objects"
startYear := Some(2007)
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))
developers := List(
Developer("", "Merlin Hughes", "", null),
Developer("", "Harrison Houghton", "", null),
Developer("", "Zack Powers", "", null),
Developer("", "Keith Wooldridge", "", null),
Developer("", "Stephen Jordan", "", null),
Developer("", "Syed Jafri", "", null),
Developer("", "Paul Gray", "", null),
Developer("", "Jasna Blemberg", "", null),
Developer("", "Michael Kalish", "", null),
Developer("", "Nick Van Aartsen", "", null),
Developer("", "Steven Burt", "", null),
Developer("", "Hunter Savage", "", null),
Developer("", "Michael Kalish", "", null),
)
publishMavenStyle := true
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
resolvers in ThisBuild += Resolver.sonatypeRepo("releases")
val sopts = Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Xlint:-unused",
"-Ywarn-unused:imports",
"-Xfatal-warnings",
"-Ywarn-unused:imports",
"-language:existentials",
"-encoding", "UTF-8",
"-opt:l:inline",
"-opt-inline-from:**",
"-opt-warnings:none",
"-Ybackend-parallelism", "4",
)
scalacOptions in Compile ++= sopts
scalacOptions in Test ++= sopts
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.3" cross CrossVersion.patch)
libraryDependencies ++= Seq(
"com.beachape" %% "enumeratum" % "1.6.1",
"com.chuusai" %% "shapeless" % "2.3.3",
"org.scalaz" %% "scalaz-core" % "7.3.3",
"io.argonaut" %% "argonaut" % "6.3.3",
)
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.5",
"org.scalacheck" %% "scalacheck" % "1.15.3",
"org.scalatestplus" %% "scalatestplus-scalacheck" % "1.0.0-M2",
"javax.annotation" % "javax.annotation-api" % "1.3.2",
) map (_ % Test)
import ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeRelease"),
pushChanges
)