forked from inoio/solrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
92 lines (72 loc) · 3.19 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
name := "solrs"
description := "A solr client for scala, providing a query interface like SolrJ, just asynchronously / non-blocking"
homepage := Some(url("https://github.com/inoio/solrs"))
organization := "io.ino"
version := "2.0.0"
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
scalaVersion := "2.11.12"
crossScalaVersions := Seq("2.11.12", "2.12.4")
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error(s"Java 8 is required for this project. Running: ${sys.props("java.specification.version")}")
}
resolvers ++= Seq(
"JCenter" at "http://jcenter.bintray.com/",
"Restlet Repositories" at "http://maven.restlet.org"
)
val solrVersion = "6.6.2"
val slf4jVersion = "1.7.25"
val tomcatVersion = "8.5.27"
libraryDependencies ++= Seq(
"org.apache.solr" % "solr-solrj" % solrVersion,
"org.asynchttpclient" % "async-http-client" % "2.2.0",
"org.scala-lang.modules" %% "scala-xml" % "1.0.6",
"org.scala-lang.modules" %% "scala-java8-compat"% "0.8.0",
"io.dropwizard.metrics" % "metrics-core" % "4.0.2" % "optional",
"org.slf4j" % "slf4j-api" % slf4jVersion,
"org.slf4j" % "slf4j-simple" % slf4jVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.4" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"org.mockito" % "mockito-core" % "1.10.19" % "test",
"org.hamcrest" % "hamcrest-library" % "1.3" % "test",
"org.clapper" %% "grizzled-scala" % "4.4.2" % "test",
// Cloud testing, solr-core for ZkController (upconfig), curator-test for ZK TestingServer
"org.apache.solr" % "solr-core" % solrVersion % "test",
"org.apache.curator" % "curator-test" % "2.12.0" % "test",
// tomcat
"org.apache.tomcat" % "tomcat-catalina" % tomcatVersion % "test",
"org.apache.tomcat" % "tomcat-jasper" % tomcatVersion % "test",
"org.apache.tomcat.embed" % "tomcat-embed-core" % tomcatVersion % "test",
"com.twitter" %% "util-core" % "18.1.0" % "optional",
"commons-logging" % "commons-logging" % "1.2"
)
// Fork tests so that SolrRunner's shutdown hook kicks in
fork in Test := true
// Publish settings
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
// enable publishing the jar produced by `test:package`
publishArtifact in (Test, packageBin) := true
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>[email protected]:inoio/solrs.git</url>
<connection>scm:git:[email protected]:inoio/solrs.git</connection>
</scm>
<developers>
<developer>
<id>martin.grotzke</id>
<name>Martin Grotzke</name>
<url>https://github.com/magro</url>
</developer>
</developers>)