aboutsummaryrefslogtreecommitdiffhomepage
path: root/protoc-artifacts
diff options
context:
space:
mode:
authorGravatar zhangkun83 <zhangkun@google.com>2015-03-27 17:33:11 -0700
committerGravatar zhangkun83 <zhangkun@google.com>2015-03-27 17:33:11 -0700
commitf1496fdafce35d63c5e65c4f7108075217b8d603 (patch)
treebba0a85d82f1a3ca7bbd2179421a13076c148d84 /protoc-artifacts
parent488162db1e59f74f7b5f094aa87fdd4a324dc3c0 (diff)
Use osdetector-gradle-plugin:1.2.1; Fix authentication methods for sonatype
Diffstat (limited to 'protoc-artifacts')
-rw-r--r--protoc-artifacts/build.gradle14
1 files changed, 3 insertions, 11 deletions
diff --git a/protoc-artifacts/build.gradle b/protoc-artifacts/build.gradle
index b44844fa..80a4f8c6 100644
--- a/protoc-artifacts/build.gradle
+++ b/protoc-artifacts/build.gradle
@@ -11,16 +11,14 @@ version = '3.0.0-alpha-3-pre'
buildscript {
repositories {
mavenCentral()
- mavenLocal()
}
dependencies {
- classpath 'com.google.gradle:osdetector-gradle-plugin:0.1.0-SNAPSHOT'
+ classpath 'com.google.gradle:osdetector-gradle-plugin:1.2.1'
}
}
repositories {
mavenCentral()
- mavenLocal()
}
signing {
@@ -53,17 +51,11 @@ uploadArchives.repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
- if (rootProject.hasProperty("ossrhUsername")
- && rootProject.hasProperty("ossrhPassword")) {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
+ authentication(userName: sonatypeUsername, password: sonatypePassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
- if (rootProject.hasProperty("ossrhUsername")
- && rootProject.hasProperty("ossrhPassword")) {
- authentication(userName: ossrhUsername, password: ossrhPassword)
- }
+ authentication(userName: sonatypeUsername, password: sonatypePassword)
}
}