Commit efc1b6a7 authored by Max Lv's avatar Max Lv

Fix the plugin build script

parent 00411646
* 1.3.3:
* Fix a build script issue.
* 1.3.2:
* Fix first key-value pair disappearing with null value. (#2391)
* Dependency updates:
......
......@@ -3,16 +3,6 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
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 {
compileSdkVersion rootProject.compileSdkVersion
......@@ -44,12 +34,13 @@ androidExtensions {
}
mavenPublish {
targets {
uploadArchives {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
repositoryUsername = getRepositoryUsername()
repositoryPassword = getRepositoryPassword()
repositoryUsername = findProperty('NEXUS_USERNAME') ?: ''
repositoryPassword = findProperty('NEXUS_PASSWORD') ?: ''
}
}
}
......
GROUP=com.github.shadowsocks
VERSION_NAME=1.3.2
VERSION_CODE=12
VERSION_NAME=1.3.3
VERSION_CODE=13
POM_ARTIFACT_ID=plugin
POM_NAME=Shadowsocks Plugin
......
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