This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
build.sbt
85 lines (63 loc) · 2.43 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
// Settings file for all the modules.
import xml.Group
import sbt._
import Keys._
import Defaults._
organization := "io.swagger"
version := "1.0.7-SNAPSHOT"
scalaVersion := "2.11.12"
crossScalaVersions := Seq("2.10.6", scalaVersion.value, "2.12.6", "2.13.1")
organizationHomepage in ThisBuild := Some(url("http://swagger.io"))
scalacOptions in ThisBuild ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked")
publishMavenStyle in ThisBuild := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"io.swagger" % "swagger-core" % "1.5.24",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.9.10",
"junit" % "junit" % "4.12" % "test"
)
publishTo := {
if (version.value.trim.endsWith("SNAPSHOT"))
Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("Sonatype Nexus Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
credentials in ThisBuild += Credentials (Path.userHome / ".ivy2" / ".credentials")
resolvers in ThisBuild ++= Seq(
Resolver.mavenLocal,
Resolver.typesafeRepo("releases"),
Resolver.typesafeRepo("snapshots"),
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
homepage := Some(new URL("https://github.com/swagger-api/swagger-scala-module"))
parallelExecution in Test := false
startYear := Some(2014)
licenses := Seq(("Apache License 2.0", new URL("http://www.apache.org/licenses/LICENSE-2.0.html")))
pomExtra := {
pomExtra.value ++ Group(
<scm>
<connection>scm:git:[email protected]:swagger-api/swagger-scala-module.git</connection>
<developerConnection>scm:git:[email protected]:swagger-api/swagger-scala-module.git</developerConnection>
<url>https://github.com/swagger-api/swagger-scala-module</url>
</scm>
<issueManagement>
<system>github</system>
<url>https://github.com/swagger-api/swagger-scala-module/issues</url>
</issueManagement>
<developers>
<developer>
<id>fehguy</id>
<name>Tony Tam</name>
<email>[email protected]</email>
</developer>
</developers>
)
}