Skip to content

Commit

Permalink
chore(#213): Add defaults for publication-related tasks
Browse files Browse the repository at this point in the history
Otherwise, Gradle Configuration phase may not pass
  • Loading branch information
rm3l committed Mar 3, 2021
1 parent 725004a commit 6b0ab68
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ nexusPublishing {
// packageGroup = "org.rm3l" //defaults to 'project.group'
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId ?: ''
username = ossrhUsername ?: ''
password = ossrhPassword ?: ''
stagingProfileId = project.ext.has('sonatypeStagingProfileId') ? project.ext.sonatypeStagingProfileId : ''
username = project.ext.has('ossrhUsername') ? project.ext.ossrhUsername : ''
password = project.ext.has('ossrhPassword') ? project.ext.ossrhPassword : ''
}
}
}
4 changes: 2 additions & 2 deletions callbacks/maoni-doorbell/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions callbacks/maoni-email/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions callbacks/maoni-github/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions callbacks/maoni-jira/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions callbacks/maoni-slack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions maoni-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions maoni/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ publishing {
name = "sonatype"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
username rootProject.ext.has('ossrhUsername') ? rootProject.ext.ossrhUsername : ''
password rootProject.ext.has('ossrhPassword') ? rootProject.ext.ossrhPassword : ''
}
}
}
Expand Down

0 comments on commit 6b0ab68

Please sign in to comment.