You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by jr...@apache.org on 2023/02/09 12:43:23 UTC

[incubator-pekko-sbt-paradox] branch main updated: better output when Nexus credentials are missing or empty (#18)

This is an automated email from the ASF dual-hosted git repository.

jrudolph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-sbt-paradox.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f2ba63  better output when Nexus credentials are missing or empty (#18)
8f2ba63 is described below

commit 8f2ba638ade1a31d7b0319a22c6affe2618f4261
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Thu Feb 9 13:43:17 2023 +0100

    better output when Nexus credentials are missing or empty (#18)
---
 build.sbt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/build.sbt b/build.sbt
index 8c2e0c2..6221088 100644
--- a/build.sbt
+++ b/build.sbt
@@ -6,9 +6,17 @@ 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)) =>
+    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
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org