Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Rename methods for maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Apr 10, 2017
1 parent 6e9692f commit 87d308f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}

def getRepositoryUrl() {
def getMavenRepositoryUrl() {
return hasProperty('repositoryUrl') ? property('repositoryUrl') : "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

def getRepositoryUsername() {
def getMavenRepositoryUsername() {
return hasProperty('repositoryUsername') ? property('repositoryUsername') : ""
}

def getRepositoryPassword() {
def getMavenRepositoryPassword() {
return hasProperty('repositoryPassword') ? property('repositoryPassword') : ""
}

Expand Down Expand Up @@ -61,10 +61,10 @@ afterEvaluate { project ->
MavenDeployment deployment -> signing.signPom(deployment)
}

repository(url: getRepositoryUrl()) {
repository(url: getMavenRepositoryUrl()) {
authentication(
userName: getRepositoryUsername(),
password: getRepositoryPassword())
userName: getMavenRepositoryUsername(),
password: getMavenRepositoryPassword())

}

Expand Down

0 comments on commit 87d308f

Please sign in to comment.