-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.sbt
71 lines (55 loc) · 2.12 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 := "solr-scala-client"
organization := "com.github.takezoe"
version := "0.0.27"
scalaVersion := "2.12.11"
scalacOptions += "-feature"
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.1", "3.0.1")
resolvers += Resolver.mavenLocal
libraryDependencies ++= Seq(
"org.apache.solr" % "solr-solrj" % "8.4.1",
"com.squareup.okhttp3" % "okhttp" % "3.14.6",
"org.scalatest" %% "scalatest" % "3.2.9" % "test",
"org.mockito" % "mockito-core" % "3.3.0" % "test",
"org.testcontainers" % "solr" % "1.16.0" % "test",
"commons-logging" % "commons-logging" % "1.2" % "runtime"
)
libraryDependencies ++= PartialFunction.condOpt(CrossVersion.partialVersion(scalaVersion.value)){
case Some((2, 11)) =>
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1"
case Some((2, v)) if v >= 12 =>
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"
case _ =>
"org.scala-lang.modules" %% "scala-parser-combinators" % "2.0.0"
}.toList
enablePlugins(BuildInfoPlugin)
testOptions += Tests.Argument("-u", "target/test-reports/" + scalaBinaryVersion.value)
publishMavenStyle := true
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")
}
scalacOptions := Seq("-deprecation", "-feature")
Test / publishArtifact := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>https://github.com/takezoe/solr-scala-client</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>https://github.com/takezoe/solr-scala-client</url>
<connection>scm:git:https://github.com/takezoe/solr-scala-client.git</connection>
</scm>
<developers>
<developer>
<id>takezoe</id>
<name>Naoki Takezoe</name>
</developer>
</developers>
)