forked from swagger-api/swagger-play
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
104 lines (91 loc) · 2.86 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
96
97
98
99
100
101
102
103
104
name := "swagger-play2"
organization := "io.swagger"
scalaVersion := "2.13.1"
crossScalaVersions := Seq(scalaVersion.value, "2.12.10")
val PlayVersion = "2.7.3"
val SwaggerVersion = "1.5.24"
val Specs2Version = "4.6.0"
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % PlayVersion,
"com.typesafe.play" %% "routes-compiler" % PlayVersion,
"io.swagger" % "swagger-core" % SwaggerVersion,
"io.swagger" %% "swagger-scala-module" % "1.0.6",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.9",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.2",
"org.slf4j" % "slf4j-api" % "1.7.21",
"com.typesafe.play" %% "play-ebean" % "5.0.2" % "test",
"org.specs2" %% "specs2-core" % Specs2Version % "test",
"org.specs2" %% "specs2-mock" % Specs2Version % "test",
"org.specs2" %% "specs2-junit" % Specs2Version % "test",
"org.mockito" % "mockito-core" % "2.21.0" % "test"
)
// see https://github.com/scala/bug/issues/11813
scalacOptions -= "-Wself-implicit"
scalacOptions in Test ~= filterConsoleScalacOptions
parallelExecution in Test := false // Swagger uses global state which breaks parallel tests
pomExtra := {
<url>http://swagger.io</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:swagger-api/swagger-play.git</url>
<connection>scm:git:[email protected]:swagger-api/swagger-play.git</connection>
</scm>
<developers>
<developer>
<id>fehguy</id>
<name>Tony Tam</name>
<email>[email protected]</email>
</developer>
<developer>
<id>ayush</id>
<name>Ayush Gupta</name>
<email>[email protected]</email>
</developer>
<developer>
<id>rayyildiz</id>
<name>Ramazan AYYILDIZ</name>
<email>[email protected]</email>
</developer>
<developer>
<id>benmccann</id>
<name>Ben McCann</name>
<url>http://www.benmccann.com/</url>
</developer>
<developer>
<id>frantuma</id>
<name>Francesco Tumanischvili</name>
<url>http://www.ft-software.net/</url>
</developer>
<developer>
<id>gmethvin</id>
<name>Greg Methvin</name>
<url>https://methvin.net/</url>
</developer>
</developers>
}
publishTo := sonatypePublishTo.value
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishMavenStyle := true
releaseCrossBuild := true
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)