From 361fdaf815ed47b7b0ce467ecb77604f26c217f6 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 8 Nov 2023 19:00:14 -0800 Subject: [PATCH] Added sonatype credentials --- .idea/misc.xml | 10 ++++++++++ .../java/net/thauvin/erik/crypto/CryptoPriceBuild.java | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 634c8f9..da23355 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -6,6 +6,16 @@ + diff --git a/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java b/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java index a8676f5..7066a59 100644 --- a/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java +++ b/src/bld/java/net/thauvin/erik/crypto/CryptoPriceBuild.java @@ -47,7 +47,10 @@ public class CryptoPriceBuild extends Project { .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1))); publishOperation() - .repository(version.isSnapshot() ? SONATYPE_SNAPSHOTS_LEGACY : SONATYPE_RELEASES_LEGACY) + .repository(version.isSnapshot() ? repository(SONATYPE_SNAPSHOTS_LEGACY.location()) + .withCredentials(property("sonatype.user"), property("sonatype.password")) + : repository(SONATYPE_RELEASES_LEGACY.location()) + .withCredentials(property("sonatype.user"), property("sonatype.password"))) .info() .groupId("net.thauvin.erik") .artifactId(name)