Commit 085c95ea authored by shiyl's avatar shiyl

Maven仓库账号改为gradle中配置

parent 5b9a93c7
...@@ -3,10 +3,10 @@ apply plugin: 'maven-publish' ...@@ -3,10 +3,10 @@ apply plugin: 'maven-publish'
/** /**
* 从 local.properties 中提取 Maven 仓库账号信息 * 从 local.properties 中提取 Maven 仓库账号信息
*/ */
def localProperties = new Properties() //def localProperties = new Properties()
localProperties.load(project.rootProject.file('local.properties').newDataInputStream()) //localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
def mavenUserName = localProperties.getProperty("MavenUsername") //def mavenUserName = localProperties.getProperty("MavenUsername")
def mavenPassword = localProperties.getProperty("MavenPassword") //def mavenPassword = localProperties.getProperty("MavenPassword")
/** /**
* 上传的仓库地址 * 上传的仓库地址
...@@ -40,8 +40,8 @@ afterEvaluate { ...@@ -40,8 +40,8 @@ afterEvaluate {
url = version_name.endsWith('SNAPSHOT') ? snapshot_repository_url : release_repository_url url = version_name.endsWith('SNAPSHOT') ? snapshot_repository_url : release_repository_url
// 仓库用户名密码 // 仓库用户名密码
credentials { credentials {
username = mavenUserName username = "android"
password = mavenPassword password = "Android2017"
} }
} }
// 定义 mavenLocal 仓库 // 定义 mavenLocal 仓库
......
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