bugfix
This commit is contained in:
parent
dc98ed767e
commit
36568915c8
2 changed files with 15 additions and 2 deletions
|
|
@ -10,6 +10,11 @@ publishing {
|
|||
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
|
||||
|
||||
credentials {
|
||||
username System.getenv('SONATYPE_NEXUS_USERNAME')
|
||||
password System.getenv('SONATYPE_NEXUS_PASSWORD')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -49,6 +54,7 @@ publishing {
|
|||
// Signing
|
||||
|
||||
signing {
|
||||
useGpgCmd()
|
||||
sign publishing.publications.mavenJava
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue