Skip to content

Commit

Permalink
prepare to release
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovzla committed Oct 22, 2019
1 parent 2d0142f commit 1caacf1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 39 deletions.
48 changes: 12 additions & 36 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name := "common"

organization := "ai.lum"

scalaVersion := "2.12.7"
scalaVersion := "2.12.10"

crossScalaVersions := Seq("2.11.12", "2.12.8")
crossScalaVersions := Seq("2.11.12", "2.12.10")

scalacOptions ++= Seq(
"-encoding", "utf-8",
Expand Down Expand Up @@ -43,9 +43,9 @@ releaseProcess := Seq[ReleaseStep](
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommandAndRemaining("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
releaseStepCommandAndRemaining("sonatypeReleaseAll"),
pushChanges
)

Expand All @@ -58,41 +58,17 @@ git.remoteRepo := "[email protected]:lum-ai/common.git"

// Publishing settings

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")
}
publishTo := sonatypePublishToBundle.value

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }

pomExtra :=
<url>https://github.com/lum-ai/common</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>scm:git:github.com/lum-ai/common</url>
<connection>scm:git:git@github.com:lum-ai/common.git</connection>
</scm>
<developers>
<developer>
<id>marcovzla</id>
<name>Marco Antonio Valenzuela Escárcega</name>
<url>lum.ai</url>
</developer>
<developer>
<id>ghp</id>
<name>Gus Hahn-Powell</name>
<url>lum.ai</url>
</developer>
</developers>
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))

import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("lum-ai", "common", "[email protected]"))

developers := List(
Developer(id="marcovzla", name="Marco Antonio Valenzuela Escárcega", email="[email protected]", url=url("https://lum.ai/"))
)
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.8")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.12")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.3.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.2")

0 comments on commit 1caacf1

Please sign in to comment.