Commit f1496fda authored by zhangkun83's avatar zhangkun83

Use osdetector-gradle-plugin:1.2.1; Fix authentication methods for sonatype

parent 488162db
...@@ -11,16 +11,14 @@ version = '3.0.0-alpha-3-pre' ...@@ -11,16 +11,14 @@ version = '3.0.0-alpha-3-pre'
buildscript { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal()
} }
dependencies { dependencies {
classpath 'com.google.gradle:osdetector-gradle-plugin:0.1.0-SNAPSHOT' classpath 'com.google.gradle:osdetector-gradle-plugin:1.2.1'
} }
} }
repositories { repositories {
mavenCentral() mavenCentral()
mavenLocal()
} }
signing { signing {
...@@ -53,17 +51,11 @@ uploadArchives.repositories.mavenDeployer { ...@@ -53,17 +51,11 @@ uploadArchives.repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
if (rootProject.hasProperty("ossrhUsername") authentication(userName: sonatypeUsername, password: sonatypePassword)
&& rootProject.hasProperty("ossrhPassword")) {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
} }
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
if (rootProject.hasProperty("ossrhUsername") authentication(userName: sonatypeUsername, password: sonatypePassword)
&& rootProject.hasProperty("ossrhPassword")) {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment