You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/02/18 11:20:13 UTC
[incubator-pekko-sbt-paradox] 01/01: Use sbt-apache-sonatype
This is an automated email from the ASF dual-hosted git repository.
mdedetrich pushed a commit to branch use-sbt-apache-sonatype
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-sbt-paradox.git
commit 82c7fe527cab8f53690e57b667b4d9b564da6648
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Sat Feb 18 12:20:04 2023 +0100
Use sbt-apache-sonatype
---
build.sbt | 27 ++-------------------------
project/plugins.sbt | 1 +
2 files changed, 3 insertions(+), 25 deletions(-)
diff --git a/build.sbt b/build.sbt
index 6221088..3522079 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,31 +1,9 @@
scalaVersion := "2.13.10"
licenses += "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")
-
-lazy val apacheBaseRepo = "repository.apache.org"
-
-def apacheNexusCredentials: Seq[Credentials] =
- (sys.env.get("NEXUS_USER"), sys.env.get("NEXUS_PW")) match {
- case (Some(user), Some(password)) if user.nonEmpty && password.nonEmpty =>
- Seq(Credentials("Sonatype Nexus Repository Manager", apacheBaseRepo, user, password))
- case (Some(user), Some(password)) =>
- if (user == "")
- println("NEXUS_USER is empty")
- if (password == "")
- println("NEXUS_PW is empty")
-
- Seq.empty
- case _ =>
- println("No Nexus credentials supplied")
- Seq.empty
- }
+ThisBuild / apacheSonatypeProjectProfile := "pekko"
lazy val publishSettings = Seq(
- credentials ++= apacheNexusCredentials,
- organizationName := "Apache Software Foundation",
- organizationHomepage := Some(url("https://www.apache.org")),
- sonatypeCredentialHost := apacheBaseRepo,
- sonatypeProfileName := "org.apache.pekko",
startYear := Some(2023),
developers := List(
Developer(
@@ -33,8 +11,7 @@ lazy val publishSettings = Seq(
"Apache Pekko Sbt Paradox Contributors",
"dev@pekko.apache.org",
url("https://github.com/apache/incubator-pekko-sbt-paradox/graphs/contributors"))),
- publishMavenStyle := true,
- pomIncludeRepository := (_ => false))
+ apacheSonatypeDisclaimerFile := Some((LocalRootProject / baseDirectory).value / "DISCLAIMER"))
lazy val pekkoParadox = project
.in(file("."))
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 4da3953..a2ac190 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -3,3 +3,4 @@
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-theme" % "0.10.3")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
+addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.3")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org