diff options
Diffstat (limited to 'protoc-artifacts/build.gradle')
-rw-r--r-- | protoc-artifacts/build.gradle | 14 |
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) } } |