Skip to content

Commit 97b9d4c

Browse files
Fix Sonatype credentials propagation (#80)
<!-- Please describe your pull request here. --> ## References - TODO <!-- References to relevant GitHub issues and pull requests, esp. upstream and downstream changes --> ## Submitter checklist - [ ] Recommended: Join [WireMock Slack](https://slack.wiremock.org/) to get any help in `#help-contributing` or a project-specific channel like `#wiremock-java` - [ ] Recommended: If you participate in Hacktoberfest 2023, make sure you're [signed up](https://wiremock.org/events/hacktoberfest/) there and in the WireMock form - [ ] The PR request is well described and justified, including the body and the references - [ ] The PR title represents the desired changelog entry - [ ] The repository's code style is followed (see the contributing guide) - [ ] Test coverage that demonstrates that the change works as expected - [ ] For new features, there's necessary documentation in this pull request or in a subsequent PR to [wiremock.org](https://github.com/wiremock/wiremock.org) <!-- Put an `x` into the [ ] to show you have filled the information. The template comes from https://github.com/wiremock/.github/blob/main/.github/pull_request_template.md You can override it by creating .github/pull_request_template.md in your own repository -->
1 parent 0ed3754 commit 97b9d4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ nexusPublishing {
234234
// See https://github.com/wiremock/community/blob/main/infra/maven-central.md
235235
repositories {
236236
sonatype {
237-
nexusUrl = uri("https://oss.sonatype.org/service/local/")
238-
snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/")
239-
username = providers.environmentVariable("OSSRH_USERNAME").get()
240-
password = providers.environmentVariable("OSSRH_TOKEN").get()
237+
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
238+
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots/"))
239+
username.set(providers.environmentVariable("OSSRH_USERNAME").get())
240+
password.set(providers.environmentVariable("OSSRH_TOKEN").get())
241241
}
242242
}
243243
}

0 commit comments

Comments
 (0)