From 4f037768d078e78614f5399cfcc8777e06192ee5 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sat, 1 May 2021 16:39:26 -0400 Subject: [PATCH] Sonatype publishing --- build.sbt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/build.sbt b/build.sbt index 31f8779d3..5d5c3c428 100644 --- a/build.sbt +++ b/build.sbt @@ -20,3 +20,26 @@ lazy val root = (project in file(".")) }, scriptedBufferLog := false, ) + +ThisBuild / scmInfo := Some( + ScmInfo( + url("https://github.com/sbt/sbt-projectmatrix"), + "scm:git@github.com:sbt/sbt-projectmatrix.git" + ) +) +ThisBuild / developers := List( + Developer( + id = "eed3si9n", + name = "Eugene Yokota", + email = "@eed3si9n", + url = url("https://eed3si9n.com/") + ) +) +ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / publishTo := { + val nexus = "https://oss.sonatype.org/" + val v = (ThisBuild / version).value + if (v.endsWith("-SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") + else Some("releases" at nexus + "service/local/staging/deploy/maven2") +} +ThisBuild / publishMavenStyle := true