Skip to content

Commit bad0e03

Browse files
committed
chore(build): refine Nexus publishing configuration
- Updated syntax for setting Sonatype username and password to improve clarity and consistency in the build script.
1 parent c7156ef commit bad0e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ nexusPublishing {
3838

3939
repositories {
4040
sonatype {
41-
username.set(System.getenv("ORG_GRADLE_PROJECT_sonatypeUsername"))
42-
password.set(System.getenv("ORG_GRADLE_PROJECT_sonatypePassword"))
41+
username = System.getenv("ORG_GRADLE_PROJECT_sonatypeUsername")
42+
password = System.getenv("ORG_GRADLE_PROJECT_sonatypePassword")
4343
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
4444
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
4545
}

0 commit comments

Comments
 (0)