Skip to content
Snippets Groups Projects
Commit 43c5f237 authored by dgelessus's avatar dgelessus
Browse files

Replace uses of deprecated Gradle assignment syntax

parent 15c2009b
Branches
No related tags found
No related merge requests found
...@@ -140,11 +140,11 @@ publishing { ...@@ -140,11 +140,11 @@ publishing {
maven { maven {
final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots" final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url isSnapshot ? snapshotsRepoUrl : releasesRepoUrl url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
credentials { credentials {
username project.ossrhUsername username = project.ossrhUsername
password project.ossrhPassword password = project.ossrhPassword
} }
} }
} }
......
...@@ -60,11 +60,11 @@ publishing { ...@@ -60,11 +60,11 @@ publishing {
maven { maven {
final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots" final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url isSnapshot ? snapshotsRepoUrl : releasesRepoUrl url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
credentials { credentials {
username project.ossrhUsername username = project.ossrhUsername
password project.ossrhPassword password = project.ossrhPassword
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment