From a39feb6199193ad79bc2d8ae449af373dbf2a7c6 Mon Sep 17 00:00:00 2001 From: Florian McKee <84742327+fmck3516@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:52:45 -0500 Subject: [PATCH] Use tokens when publishing to OSSRH --- .../main/java/io/skippy/build/ossrh/OssrhPublishPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/io/skippy/build/ossrh/OssrhPublishPlugin.java b/buildSrc/src/main/java/io/skippy/build/ossrh/OssrhPublishPlugin.java index ec7df243..adbea66b 100644 --- a/buildSrc/src/main/java/io/skippy/build/ossrh/OssrhPublishPlugin.java +++ b/buildSrc/src/main/java/io/skippy/build/ossrh/OssrhPublishPlugin.java @@ -69,8 +69,8 @@ private void applyInternal(Project project, OssrhPublishPluginExtension extensio repo.setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"); } repo.credentials(credentials -> { - credentials.setUsername(System.getenv("OSSRH_USERNAME")); - credentials.setPassword(System.getenv("OSSRH_PASSWORD")); + credentials.setUsername(System.getenv("OSSRH_TOKEN")); + credentials.setPassword(System.getenv("OSSRH_TOKEN_SECRET")); }); });