This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
/
build.sbt
71 lines (56 loc) · 1.97 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
name := "scalaj-http"
version := "2.5.0"
organization := "org.scalaj"
scalaVersion := "2.12.15"
libraryDependencies ++= Seq(
"junit" % "junit" % "4.13.2" % "test",
"com.github.sbt" % "junit-interface" % "0.13.3" % "test",
"org.eclipse.jetty" % "jetty-server" % "8.2.0.v20160908" % "test",
"org.eclipse.jetty" % "jetty-servlet" % "8.2.0.v20160908" % "test",
"org.eclipse.jetty" % "jetty-servlets" % "8.2.0.v20160908" % "test"
)
libraryDependencies += {
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.13.2" % "test"
}
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoPackage := "scalaj.http"
crossScalaVersions := Seq("2.12.15", "2.13.7", "3.1.0")
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-Xfuture"
)
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/root-doc.txt")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>http://github.com/scalaj/scalaj-http</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:scalaj/scalaj-http.git</url>
<connection>scm:git:[email protected]:scalaj/scalaj-http.git</connection>
</scm>
<developers>
<developer>
<id>hoffrocket</id>
<name>Jon Hoffman</name>
<url>http://github.com/hoffrocket</url>
</developer>
</developers>
)