This repository has been archived by the owner on Oct 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
72 lines (66 loc) · 2.55 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
name := "swagger-play2"
version := "1.5.2-SNAPSHOT"
checksums in update := Nil
scalaVersion:= "2.11.6"
crossScalaVersions := Seq("2.11.6", "2.11.7")
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.16",
"io.swagger" % "swagger-core" % "1.5.8",
"io.swagger" %% "swagger-scala-module" % "1.0.2",
"com.typesafe.play" %% "routes-compiler" % "2.5.1",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.7.2",
"com.typesafe.play" %% "play-ebean" % "3.0.0" % "test",
"org.specs2" %% "specs2-core" % "3.6.6" % "test",
"org.specs2" %% "specs2-mock" % "3.6.6" % "test",
"org.specs2" %% "specs2-junit" % "3.6.6" % "test",
"org.mockito" % "mockito-core" % "1.10.19" % "test")
mappings in (Compile, packageBin) ~= { _.filter(!_._1.getName.equals("logback.xml")) }
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
publishMavenStyle := true
pomIncludeRepository := { x => false }
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
organization := "io.swagger"
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>git@github.com:swagger-api/swagger-play.git</url>
<connection>scm:git:git@github.com:swagger-api/swagger-play.git</connection>
</scm>
<developers>
<developer>
<id>fehguy</id>
<name>Tony Tam</name>
<email>fehguy@gmail.com</email>
</developer>
<developer>
<id>ayush</id>
<name>Ayush Gupta</name>
<email>ayush@glugbot.com</email>
</developer>
<developer>
<id>rayyildiz</id>
<name>Ramazan AYYILDIZ</name>
<email>rayyildiz@gmail.com</email>
</developer>
<developer>
<id>benmccann</id>
<name>Ben McCann</name>
<url>http://www.benmccann.com/</url>
</developer>
</developers>
}
lazy val root = (project in file(".")).enablePlugins(PlayScala)