Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
ShenghuoquanBusiness
Commits
085c95ea
Commit
085c95ea
authored
Aug 09, 2021
by
shiyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maven仓库账号改为gradle中配置
parent
5b9a93c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
publish.gradle
publish.gradle
+6
-6
No files found.
publish.gradle
View file @
085c95ea
...
@@ -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 仓库
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment