forked from dakatsuka/akka-http-oauth2-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
93 lines (73 loc) · 2.18 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
import ReleaseTransformations._
organization := "com.github.dakatsuka"
name := "akka-http-oauth2-client"
scalaVersion := "2.12.3"
crossScalaVersions := Seq("2.11.11", "2.12.3")
lazy val akkaHttpVersion = "10.0.10"
lazy val circeVersion = "0.8.0"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.3" % "test",
"org.scalamock" %% "scalamock-scalatest-support" % "3.4.2" % "test"
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding",
"utf-8",
"-feature",
"-language:existentials",
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xcheckinit",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint"
)
enablePlugins(ScalafmtPlugin)
scalafmtOnCompile := true
scalafmtTestOnCompile := true
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/dakatsuka/akka-http-oauth2-client"))
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ =>
false
}
releaseCrossBuild := true
publishTo := Some(
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots
else Opts.resolver.sonatypeStaging
)
scmInfo := Some(
ScmInfo(
url("https://github.com/dakatsuka/akka-http-oauth2-client"),
"scm:[email protected]:dakatsuka/akka-http-oauth2-client.git"
)
)
developers := List(
Developer(
id = "dakatsuka",
name = "Dai Akatsuka",
email = "[email protected]",
url = url("https://github.com/dakatsuka")
)
)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("+publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("+sonatypeRelease", _)),
pushChanges
)