From 7966198a68132503db0e0c228ce54950adb2a006 Mon Sep 17 00:00:00 2001 From: Chenyang Ji Date: Wed, 4 Sep 2024 13:17:18 -0700 Subject: [PATCH] Add configuration for publishing snapshot (#90) Signed-off-by: Chenyang Ji --- .github/workflows/maven-publish.yml | 4 ---- build.gradle | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index aabc13d..6c30bcf 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -36,9 +36,5 @@ jobs: export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text) echo "::add-mask::$SONATYPE_USERNAME" echo "::add-mask::$SONATYPE_PASSWORD" - # For JS-SPI jar - ./gradlew publishShadowPublicationToSnapshotsRepository - # For JS jar - ./gradlew publishNebulaPublicationToSnapshotsRepository # For JS plugin zip ./gradlew publishPluginZipPublicationToSnapshotsRepository diff --git a/build.gradle b/build.gradle index a3996fb..2286caf 100644 --- a/build.gradle +++ b/build.gradle @@ -81,6 +81,16 @@ publishing { } } } + repositories { + maven { + name = "Snapshots" + url = "https://aws.oss.sonatype.org/content/repositories/snapshots" + credentials { + username "$System.env.SONATYPE_USERNAME" + password "$System.env.SONATYPE_PASSWORD" + } + } + } } checkstyle {