Skip to content

Commit

Permalink
add publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaali committed Nov 12, 2017
1 parent f348747 commit c7f895c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Add spray-jwt as dependency to your `build.sbt`:

```sbtshell
libraryDependencies ++= Seq(
"net.janjaali" %% "spray-jwt" % "1.0.0"
"com.github.janjaali" %% "spray-jwt" % "1.0.0"
)
```

Expand Down
28 changes: 26 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,38 @@ import scala.sys.process._

name := "spray-jwt"

organization := "net.habashi"
organization := "com.github.janjaali"

version := "1.0.0"

licenses := Seq("MIT License" -> url("https://opensource.org/licenses/MIT"))

homepage := Some(url("https://github.com/janjaali/spray-jwt"))

scmInfo := Some(
ScmInfo(
url("https://github.com/janjaali/spray-jwt"),
"scm:git@github.com/janjaali/spray-jwt.git"
)
)

developers := List(
Developer(
id = "ghashange",
name = "ghashange",
email = "",
url = url("https://github.com/janjaali")
)
)

scalaVersion := "2.12.3"

publishMavenStyle := true

publishArtifact in Test := false

publishTo := {
val nexus = "https://my.artifact.repo.net/"
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) {
Some("snapshots" at nexus + "content/repositories/snapshots")
} else {
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")

0 comments on commit c7f895c

Please sign in to comment.