diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index aabc13d4..6c30bcf9 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 a3996fb7..2286caf6 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 {