-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
80 lines (55 loc) · 2.42 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
scalaVersion := "2.13.6"
scalacOptions --= List("-Xlint:inaccessible")
ThisBuild / versionScheme := Some("early-semver")
updateOptions := updateOptions.value.withLatestSnapshots(false)
organization := "ch.srf"
name := "scala-xml-codec"
val testDependencies = Seq(
"org.specs2" %% "specs2-scalacheck" % "4.12.3",
"io.chrisdavenport" %% "cats-scalacheck" % "0.2.0",
"org.typelevel" %% "cats-laws" % "2.6.1",
).map(_ % "test")
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.3",
"org.scala-lang.modules" %% "scala-xml" % "2.0.0",
"org.typelevel" %% "cats-core" % "2.6.1"
) ++ testDependencies ++ List(compilerPlugin("org.typelevel" % ("kind-projector_" + scalaVersion.value) % "0.13.0"))
wartremoverErrors ++= Warts.allBut(Wart.Any, Wart.Nothing, Wart.NonUnitStatements)
Test / wartremoverErrors -= Wart.NonUnitStatements
/* --------------------------------------------------------------------------------
* Release
* -------------------------------------------------------------------------------- */
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := {
import ReleaseTransformations._
releaseProcess.value.dropRight(1) ++ Seq[ReleaseStep](
releaseStepCommand("sonatypeRelease"),
pushChanges
)
}
/* --------------------------------------------------------------------------------
* Publishing
* -------------------------------------------------------------------------------- */
homepage := Some(url("https://github.com/mmz-srf/scala-xml-codec"))
scmInfo := Some(ScmInfo(
url("https://github.com/mmz-srf/scala-xml-codec"),
"[email protected]:username/projectname.git"))
developers := List(
Developer(id = "devkat", name="Andreas Jim-Hartmann", email="[email protected]", url = url("https://github.com/devkat"))
)
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
publishMavenStyle := true
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
publishConfiguration := publishConfiguration.value.withOverwrite(true)
/* --------------------------------------------------------------------------------
* GitHub pages
* -------------------------------------------------------------------------------- */
enablePlugins(GhpagesPlugin, SiteScaladocPlugin)
git.remoteRepo := "[email protected]:{your username}/{your project}.git"
ghpagesNoJekyll := true