Skip to content

Commit

Permalink
feat(publish): Add publish config
Browse files Browse the repository at this point in the history
  • Loading branch information
adetante committed Aug 30, 2017
1 parent 84f0852 commit be2861a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.idea/
target/
.DS_Store
41 changes: 39 additions & 2 deletions build.sbt
Expand Up @@ -5,7 +5,7 @@ lazy val root = (project in file(".")).
inThisBuild(List(
organization := "lu.intech",
scalaVersion := "2.12.3",
version := "0.1.0-SNAPSHOT"
version := "1.0.0"
)),
name := "tendermint-server",
libraryDependencies ++= Seq(
Expand All @@ -20,4 +20,41 @@ lazy val root = (project in file(".")).

PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
)

pomIncludeRepository := { _ => false }



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

homepage := Some(url("https://github.com/InTechSA/scala-tendermint-server"))

scmInfo := Some(
ScmInfo(
url("https://github.com/InTechSA/scala-tendermint-server"),
"scm:git@github.com:InTechSA/scala-tendermint-server.git"
)
)

developers := List(
Developer(
id = "antoined",
name = "Antoine Detante",
email = "antoine.detante@intech.lu",
url = url("https://github.com/adetante")
)
)

publishMavenStyle := true
publishArtifact in Test := false

useGpg := 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")
}
1 change: 1 addition & 0 deletions project/sonatype.sbt
@@ -0,0 +1 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")

0 comments on commit be2861a

Please sign in to comment.