Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thanhtien522
committed
Aug 1, 2017
1 parent
ea89db1
commit 673a8dd
Showing
1 changed file
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,48 @@ | ||
organization := "com.github.thanhtien522" | ||
|
||
name := "es_http_client" | ||
name := "es-http-client" | ||
|
||
version := "0.1-beta" | ||
|
||
scalaVersion := "2.11.11" | ||
|
||
resolvers += "twitter" at "https://maven.twttr.com" | ||
|
||
libraryDependencies ++= Seq( | ||
"com.twitter" %% "util-core" % "6.43.0", | ||
"org.elasticsearch.client" % "rest" % "5.4.1", | ||
"com.fasterxml.jackson.core" % "jackson-databind" % "2.8.8", | ||
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.8.8", | ||
"org.elasticsearch" % "elasticsearch" %"2.4.1" % "test", | ||
"org.scalatest" %% "scalatest" % "3.0.1" % "test" | ||
) | ||
|
||
pomIncludeRepository := { _ => false } | ||
|
||
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.html")) | ||
|
||
publishArtifact in (Compile, packageBin) := true | ||
|
||
publishArtifact in (Test, packageBin) := false | ||
|
||
publishArtifact in (Compile, packageDoc) := false | ||
|
||
publishArtifact in (Compile, packageSrc) := false | ||
|
||
publishMavenStyle := true | ||
|
||
homepage := Some(url("https://github.com/thanhtien522/es-http-client")) | ||
|
||
scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/thanhtien522/es-http-client"), | ||
"scm:git@github.com:thanhtien522/es-http-client.git" | ||
) | ||
) | ||
|
||
publishTo := { | ||
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") | ||
} | ||
|
||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.1") |