File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,14 +146,12 @@ publishing {
146146 }
147147 repositories {
148148 maven {
149- def releasesRepoUrl = " https://oss. sonatype.org /service/local/staging/deploy/maven2"
150- def snapshotsRepoUrl = " https://oss .sonatype.org/content/repositories/ snapshots"
149+ def releasesRepoUrl = " https://ossrh-staging-api.central. sonatype.com /service/local/staging/deploy/maven2/ "
150+ def snapshotsRepoUrl = " https://central .sonatype.com/repository/maven- snapshots/ "
151151 url = version. endsWith(' SNAPSHOT' ) ? snapshotsRepoUrl : releasesRepoUrl
152- if (project. hasProperty(' sonatypeUsername' ) && project. hasProperty(' sonatypePassword' )) {
153- credentials {
154- username = " ${ sonatypeUsername} "
155- password = " ${ sonatypePassword} "
156- }
152+ credentials {
153+ username = findProperty(' centralPortalUsername' )
154+ password = findProperty(' centralPortalPassword' )
157155 }
158156 }
159157 }
You can’t perform that action at this time.
0 commit comments