Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GradlePlugin
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
Gradle
GradlePlugin
Commits
36e5663d
Commit
36e5663d
authored
Oct 22, 2021
by
王雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示分支,显示环境
parent
a855bc43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
build.gradle
build.gradle
+6
-6
PygerUploadTask.groovy
src/main/groovy/GradlePlugin/PygerUploadTask.groovy
+1
-1
OssUploadTask.groovy
src/main/groovy/com/qmai/android/plugin/OssUploadTask.groovy
+1
-1
No files found.
build.gradle
View file @
36e5663d
...
...
@@ -150,19 +150,19 @@ gradlePlugin {
uploadArchives
{
repositories
.
mavenDeployer
{
/*
repository(url: uri('https://hub.zmcms.cn/repository/maven-releases/')) {
repository
(
url:
uri
(
'https://hub.zmcms.cn/repository/maven-releases/'
))
{
authentication
(
userName:
'wanglei1'
,
password:
'woshiwanglei123'
)
}
*/
// 本地仓库路径
}
pom
.
groupId
=
"com.qmai.android.plugin"
// 唯一标识(通常为模块包名,也可以任意)
pom
.
artifactId
=
"AndroidPlugins"
// 项目名称(通常为类库模块名称,也可以任意)
//pom.version = "1.36
" // 版本号
pom
.
version
=
"1.48-SNAPSHOT"
pom
.
version
=
"1.38
"
// 版本号
//
pom.version = "1.48-SNAPSHOT"
snapshotRepository
(
url:
'https://hub.zmcms.cn/repository/maven-snapshots/'
)
{
/*
snapshotRepository(url: 'https://hub.zmcms.cn/repository/maven-snapshots/') {
authentication(userName: 'wanglei1', password: 'woshiwanglei123')
}
}
*/
}
}
// Add a source set for the functional test suite
...
...
src/main/groovy/GradlePlugin/PygerUploadTask.groovy
View file @
36e5663d
...
...
@@ -66,7 +66,7 @@ class PygerUploadTask extends DefaultTask {
println
(
"下载地址为: downloadUrl:"
+
" https://www.pgyer.com/"
+
payInfoBean
.
data
.
buildShortcutUrl
)
println
(
"二维码地址为:"
+
payInfoBean
.
data
.
buildQRCodeURL
)
System
.
out
.
println
(
"upload result: "
+
result
)
String
content
=
file
.
name
+
": 下载地址: "
+
" https://www.pgyer.com/"
+
payInfoBean
.
data
.
buildShortcutUrl
+
" \n二维码地址: "
+
payInfoBean
.
data
.
buildQRCodeURL
+
" 当前环境
"
+
buildType
+
" 当前分支
"
+
getBranch
()
String
content
=
file
.
name
+
": 下载地址: "
+
" https://www.pgyer.com/"
+
payInfoBean
.
data
.
buildShortcutUrl
+
" \n二维码地址: "
+
payInfoBean
.
data
.
buildQRCodeURL
+
" 当前环境
: "
+
buildType
+
" 当前分支:
"
+
getBranch
()
MediaType
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
);
JSONObject
json
=
new
JSONObject
()
try
{
...
...
src/main/groovy/com/qmai/android/plugin/OssUploadTask.groovy
View file @
36e5663d
...
...
@@ -76,7 +76,7 @@ class OssUploadTask extends DefaultTask {
MediaType
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
);
JSONObject
json
=
new
JSONObject
()
def
gson
=
new
Gson
()
def
content
=
"qmshopassitant: 下载地址为: "
+
"https://files.qmai.cn/"
+
ossPath
+
fileName
+
" 当前环境
"
+
buildType
+
" 当前分支
"
+
getBranch
()
def
content
=
"qmshopassitant: 下载地址为: "
+
"https://files.qmai.cn/"
+
ossPath
+
fileName
+
" 当前环境
: "
+
buildType
+
" 当前分支:
"
+
getBranch
()
def
dingDingdetail
=
new
DingDingDetailInfoModel
(
content
)
def
dingdingInfo
=
new
DingDingInfoModel
(
dingDingdetail
)
RequestBody
requestBody
=
RequestBody
.
create
(
JSON
,
gson
.
toJson
(
dingdingInfo
))
...
...
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