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

Commit

Permalink
fix upload to oss.sonatype.org 401 error code
Browse files Browse the repository at this point in the history
  • Loading branch information
0312birdzhang committed Jan 22, 2016
1 parent 6fcefc6 commit 163c37a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jar.libsDir = './lib'

group = "com.github.0312birdzhang"
archivesBaseName = "zabbix4j"
version = '0.1.0'
version = '0.1.4'

repositories {
mavenCentral()
Expand Down Expand Up @@ -65,14 +65,12 @@ uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'BirdZhang', password: hasProperty('ossrhPassword')?ossrhPassword:'')
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'BirdZhang', password: hasProperty('ossrhPassword')?ossrhPassword:'')
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"){
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/"){
authentication(userName: ossrhUsername, password: ossrhPassword)
}

pom.project {
name 'zabbix4j'
Expand Down

0 comments on commit 163c37a

Please sign in to comment.