Commit c68c3cb9 authored by Max Lv's avatar Max Lv

Revert plugin's build.gradle

parent 7d2c314c
...@@ -3,6 +3,16 @@ apply plugin: 'kotlin-android' ...@@ -3,6 +3,16 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.vanniktech.maven.publish' apply plugin: 'com.vanniktech.maven.publish'
@SuppressWarnings("GroovyUnusedDeclaration")
def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}
@SuppressWarnings("GroovyUnusedDeclaration")
def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}
android { android {
compileSdkVersion rootProject.compileSdkVersion compileSdkVersion rootProject.compileSdkVersion
...@@ -36,8 +46,8 @@ mavenPublish { ...@@ -36,8 +46,8 @@ mavenPublish {
uploadArchives { uploadArchives {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/" snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
repositoryUsername = NEXUS_USERNAME repositoryUsername = getRepositoryUsername()
repositoryPassword = NEXUS_PASSWORD repositoryPassword = getRepositoryPassword()
} }
} }
} }
......
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