Skip to content

Commit

Permalink
Publish library to Sonatype Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
barney committed Nov 28, 2015
1 parent 30d46a6 commit 91c7798
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -2,4 +2,4 @@ language: scala
scala:
- 2.11.7
script:
- sbt clean coverage test coveralls
- sbt clean coverage test coveralls
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -38,6 +38,14 @@ For the test suites you will also need:

## Installation

Add to `Build.scala` or `build.sbt`

```scala
libraryDependencies ++= Seq(
"io.krom" % "lsh-scala_2.11" % "0.1"
)
```

Clone the repository and use in your projects.

TODO: Maven and sbt setup
Expand Down
36 changes: 35 additions & 1 deletion build.sbt
Expand Up @@ -9,7 +9,41 @@ val dependencies = Seq(

lazy val root = (project in file(".")).settings(
name := "lsh-scala",
organization := "io.krom",
version := "0.1",
scalaVersion := "2.11.7",
libraryDependencies ++= dependencies
libraryDependencies ++= dependencies,
parallelExecution in Test := false,
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")
},
publishMavenStyle := true,
publishArtifact in Test := false,
sonatypeProfileName := "io.krom",
pomIncludeRepository := { _ => false },
pomExtra := (
<url>https://github.com/barneygovan/lsh-scala</url>
<licenses>
<license>
<name>Apache 2.0 License</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/barneygovan/lsh-scala.git</connection>
<developerConnection>scm:git:git@github.com:barneygovan/lsh-scala.git</developerConnection>
<url>github.com/barneygovan/lsh-scala.git</url>
</scm>
<developers>
<developer>
<id>barneygovan</id>
<name>Barney Govan</name>
<url>https://github.com/barneygovan</url>
</developer>
</developers>)
)
5 changes: 4 additions & 1 deletion project/plugins.sbt
@@ -1,4 +1,7 @@
resolvers += Classpaths.sbtPluginReleases

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.0.4")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "1.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

0 comments on commit 91c7798

Please sign in to comment.