Fixing version from commandline
This commit is contained in:
parent
4cbbabd0e1
commit
5b8b69e7ef
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ publishing {
|
|||
maven {
|
||||
def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/'
|
||||
def releasesRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
url = project.hasProperty('release') && !version.endsWith('SNAPSHOT') ? releasesRepoUrl : snapshotsRepoUrl
|
||||
url = project.hasProperty('release') ? releasesRepoUrl : snapshotsRepoUrl
|
||||
|
||||
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
|
||||
credentials {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue