Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
Regular developers don't have access to the credentials used to publish artifacts to Sonatype (and they don't need them).

This commit changes `ossrhUsername` and `ossrhPassword` properties so they're referenced only when needed.

This is commit 1/2 to fix issue #11.
  • Loading branch information
michelole committed Jun 22, 2017
1 parent 4287ebc commit 41e98dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Expand Up @@ -113,8 +113,8 @@ configure(javaprojects) {
apply plugin: "io.codearte.nexus-staging"

nexusStaging {
username = ossrhUsername
password = ossrhPassword
username = findProperty('ossrhUsername')
password = findProperty('ossrhPassword')
}

// Apply the configuration for the published projects only
Expand Down Expand Up @@ -150,4 +150,4 @@ task wrapper(type: Wrapper) {

gradleVersion = '3.4.1'
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 comments on commit 41e98dc

Please sign in to comment.