Skip to content

Commit

Permalink
Update sbt config
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhtien522 committed Aug 1, 2017
1 parent ea89db1 commit 673a8dd
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions build.sbt
@@ -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")

0 comments on commit 673a8dd

Please sign in to comment.