Skip to content

Commit 86be17c

Browse files
authored
[build] add missing credentials to nexus-staging plugin config (#559)
1 parent 2f99422 commit 86be17c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
3131
echo "New version: ${NEW_VERSION}"
32-
./gradlew publish -Pversion=${NEW_VERSION}
32+
./gradlew publish closeAndReleaseRepository -Pversion=${NEW_VERSION}
3333
env:
3434
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3535
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ tasks {
181181
jar {
182182
enabled = false
183183
}
184-
val closeAndReleaseRepository by getting
185-
val publish by getting
186-
publish.finalizedBy(closeAndReleaseRepository)
184+
nexusStaging {
185+
serverUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
186+
username = System.getenv("SONATYPE_USERNAME")
187+
password = System.getenv("SONATYPE_PASSWORD")
188+
}
187189
}

0 commit comments

Comments
 (0)