Commit 5b018c97 authored by Mygod's avatar Mygod

Revert "Fix plugin properties"

This reverts commit 7ca5328d.
parent 25718539
...@@ -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
...@@ -38,8 +48,8 @@ mavenPublish { ...@@ -38,8 +48,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