diff --git a/build.sbt b/build.sbt index 75259c5..c8deba1 100644 --- a/build.sbt +++ b/build.sbt @@ -1,14 +1,49 @@ name := "isarn-scalatest" organization := "org.isarnproject" + bintrayOrganization := Some("isarn") -version := "0.0.1" +version := "0.0.2" -scalaVersion := "2.10.6" +scalaVersion := "2.11.8" crossScalaVersions := Seq("2.10.6", "2.11.8") +useGpg := true + +pomIncludeRepository := { _ => false } + +publishMavenStyle := true + +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") +} + +licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) + +homepage := Some(url("http://example.com")) + +scmInfo := Some( + ScmInfo( + url("https://github.com/isarn/isarn-scalatest"), + "scm:git@github.com:isarn/isarn-scalatest.git" + ) +) + +developers := List( + Developer( + id = "erikerlandson", + name = "Erik Erlandson", + email = "eje@redhat.com", + url = url("https://erikerlandson.github.io/") + ) +) + def commonSettings = Seq( libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "2.2.4" @@ -17,8 +52,6 @@ def commonSettings = Seq( seq(commonSettings:_*) -licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")) - scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature") scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/root-doc.txt") diff --git a/project/plugins.sbt b/project/plugins.sbt index cbbf12b..4a0e171 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -13,6 +13,10 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.4") addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.6.0") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.1") + +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0") + // scoverage and coveralls deps are at old versions to avoid a bug in the current versions // update these when this fix is released: https://github.com/scoverage/sbt-coveralls/issues/73 addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4")