-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
68 lines (59 loc) · 2.58 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
name := "sttp-scribe"
organization := "software.purpledragon"
scalaVersion := "2.13.14"
crossScalaVersions := Seq(scalaVersion.value, "2.12.19")
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.36",
"com.softwaremill.sttp.client" %% "core" % "2.3.0",
"com.github.scribejava" % "scribejava-core" % "8.3.3",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.12.0",
"com.github.bigwheel" %% "util-backports" % "2.1",
"org.scala-lang.modules" %% "scala-java8-compat" % "1.0.2",
"org.scalatest" %% "scalatest" % "3.2.18" % Test,
"org.mockito" %% "mockito-scala" % "1.17.31" % Test,
"commons-io" % "commons-io" % "2.16.1" % Test,
"org.apache.commons" % "commons-lang3" % "3.14.0" % Test,
"ch.qos.logback" % "logback-classic" % "1.3.14" % Test
)
scalacOptions ++= {
if (scalaVersion.value.startsWith("2.13")) {
Seq("-Wunused:imports", "-deprecation", "-release:8")
} else {
Seq("-Ypartial-unification", "-Ywarn-unused-import", "-deprecation", "-release:8")
}
}
semanticdbEnabled := true
semanticdbVersion := scalafixSemanticdb.revision
headerLicense := Some(HeaderLicense.ALv2("2018", "Michael Stringer"))
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0"))
developers := List(
Developer("stringbean", "Michael Stringer", "@the_stringbean", url("https://github.com/stringbean"))
)
organizationName := "Purple Dragon Software"
organizationHomepage := Some(url("https://purpledragon.software"))
homepage := Some(url("https://github.com/stringbean/sttp-scribe"))
scmInfo := Some(
ScmInfo(url("https://github.com/stringbean/sttp-scribe"), "https://github.com/stringbean/sttp-scribe.git")
)
publishTo := sonatypePublishToBundle.value
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations.*
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
releaseStepCommand("scalafmtCheckAll"),
releaseStepCommand("headerCheckAll"),
releaseStepCommand("scalafixAll --check"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
mimaPreviousArtifacts := Set.empty