Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
defcce19
Commit
defcce19
authored
Jun 23, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加统一发布
parent
36214831
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
16 deletions
+46
-16
build.gradle
app/build.gradle
+1
-1
build.gradle
build.gradle
+10
-0
config.gradle
config.gradle
+10
-10
build.gradle
m-im/build.gradle
+1
-0
build.gradle
m-tests/build.gradle
+1
-0
build.gradle
m-user/build.gradle
+1
-0
maven_push.gradle
maven_push.gradle
+22
-5
No files found.
app/build.gradle
View file @
defcce19
...
...
@@ -182,7 +182,7 @@ dependencies {
implementation
(
rootProject
.
ext
.
dependencies
[
"appcompat-v7"
])
testImplementation
'junit:junit:4.13.2'
androidTestImplementation
'androidx.test.ext:junit:1.1.2'
implementation
"com.ydl.aar:resource:0.0.1-xlzx"
//
implementation "com.ydl.aar:resource:0.0.1-xlzx"
// kapt rootProject.ext.dependencies["dagger2-compiler"]
implementation
(
rootProject
.
ext
.
dependencies
[
"design"
])
...
...
build.gradle
View file @
defcce19
...
...
@@ -58,6 +58,16 @@ task clean(type: Delete) {
delete
rootProject
.
buildDir
}
task
packYdl
{
doLast
{
println
(
"doLast packYdl!!!!"
)
}
}
task
packM
{
doLast
{
println
(
"doLast packM!!!!"
)
}
}
subprojects
{
project
.
configurations
.
all
{
...
...
config.gradle
View file @
defcce19
ext
{
dev_mode
=
false
ydl2PublishVersion
=
"0.0.2-a"
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
...
...
@@ -211,22 +211,22 @@ ext {
"ydl-hnet"
:
"com.ydl:h-net:0.0.8"
,
"ydl-user-router"
:
"com.ydl:router:1.0.0-SNAPSHOT@aar"
,
"ydl-device"
:
"com.ydl:device-id:0.0.30@aar"
,
"ydl-net"
:
"com.ydl:ydl-net:${ydl
PublishVersion["
ydl
-
net
"]
}"
,
"ydl-utils"
:
"com.ydl:ydl-utils:${ydl
PublishVersion["
ydl
-
utils
"]
}"
,
"ydl-net"
:
"com.ydl:ydl-net:${ydl
2PublishVersion
}"
,
"ydl-utils"
:
"com.ydl:ydl-utils:${ydl
2PublishVersion
}"
,
//flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块
"ydl-flutter-base"
:
"com.ydl:ydl-flutter-base:${ydl
PublishVersion["
ydl
-
flutter
-
base
"]
}"
,
//组件化项目中的flutter base模块
"ydl-flutter-base"
:
"com.ydl:ydl-flutter-base:${ydl
2PublishVersion
}"
,
//组件化项目中的flutter base模块
"ydl-flutter"
:
"com.ydl:ydl-flutter:0.0.44@aar"
,
//flutter aar
// "ydl-flutter-sp" : "com.ydl:ydl-flutter-sp:0.0.2@aar", //flutter 缓存 aar
//基础组件 <<--- 先发这个,发完改这里的版本号
"ydl-platform"
:
"com.ydl:ydl-platform:${ydl
PublishVersion["
ydl
-
platform
"]}@aar
"
,
"ydl-tuicore"
:
"com.ydl:ydl-tuicore:${ydlPublishVersion["
ydl
-
tuicore
"]}
@aar
"
,
"ydl-platform"
:
"com.ydl:ydl-platform:${ydl
2PublishVersion}
"
,
"ydl-tuicore"
:
"com.ydl:ydl-tuicore:${ydlPublishVersion["
ydl
-
tuicore
"]}"
,
//功能组件 <<--- 再发这些,发完改这里的版本号
"ydl-webview"
:
"com.ydl:ydl-webview:${ydl
PublishVersion["
ydl
-
webview
"]}@aar
"
,
"ydl-media"
:
"com.ydl:ydl-media:${ydl
PublishVersion["
ydl
-
media
"]}@aar
"
,
"ydl-pay"
:
"com.ydl:ydl-pay:${ydl
PublishVersion["
ydl
-
pay
"]}@aar
"
,
"m-audioim"
:
"com.ydl:m-audioim:${ydl
PublishVersion["
m
-
audioim
"]}@aar
"
,
"ydl-webview"
:
"com.ydl:ydl-webview:${ydl
2PublishVersion}
"
,
"ydl-media"
:
"com.ydl:ydl-media:${ydl
2PublishVersion}
"
,
"ydl-pay"
:
"com.ydl:ydl-pay:${ydl
2PublishVersion}
"
,
"m-audioim"
:
"com.ydl:m-audioim:${ydl
2PublishVersion}
"
,
//业务组件 <<--- 最后发这些(只发改过的)
"ydl-m-user-api"
:
"com.ydl:m-user-api:1.0.0"
,
...
...
m-im/build.gradle
View file @
defcce19
...
...
@@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
from:
"../maven_push.gradle"
kapt
{
arguments
{
...
...
m-tests/build.gradle
View file @
defcce19
...
...
@@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
from:
"../maven_push.gradle"
kapt
{
arguments
{
...
...
m-user/build.gradle
View file @
defcce19
...
...
@@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlin-kapt'
apply
from:
"../maven_push.gradle"
kapt
{
arguments
{
...
...
maven_push.gradle
View file @
defcce19
...
...
@@ -3,7 +3,14 @@ apply plugin: 'maven'
def
mavenRepositoryUrl
=
"http://nexus.yidianling.com/repository/AndroidReleases/"
def
getVersionName
()
{
return
hasProperty
(
'VERSION_NAME'
)
?
VERSION_NAME
:
rootProject
.
ext
.
ydlPublishVersion
[
project
.
getName
()]
return
rootProject
.
ext
.
ydl2PublishVersion
}
def
isLocal
(){
Properties
properties
=
new
Properties
()
InputStream
inputStream
=
project
.
rootProject
.
file
(
'local.properties'
).
newDataInputStream
()
;
properties
.
load
(
inputStream
)
def
local
=
properties
.
getProperty
(
"packageLocal"
)
return
local
}
task
sourceJar
(
type:
Jar
){
classifier
=
'source'
...
...
@@ -19,11 +26,14 @@ afterEvaluate { project ->
mavenDeployer
{
pom
.
artifactId
=
project
.
getName
().
replace
(
'_'
,
"-"
)
pom
.
groupId
=
"com.ydl"
pom
.
version
=
getVersionName
()
repository
(
url:
mavenRepositoryUrl
)
{
authentication
(
userName:
"admin"
,
password:
"fjoi#1+#@"
)
pom
.
version
=
getVersionName
()
if
(
isLocal
()
==
"true"
)
{
repository
(
url:
mavenLocal
().
url
)
}
else
{
repository
(
url:
mavenRepositoryUrl
)
{
authentication
(
userName:
"admin"
,
password:
"fjoi#1+#@"
)
}
}
// repository(url:mavenLocal().url)
}
}
}
...
...
@@ -37,4 +47,10 @@ afterEvaluate { project ->
,
"release"
)
}
// rootProject.getTasksByName("aa",false).forEach{println(it)}
if
(
project
.
name
.
startsWith
(
"ydl"
))
{
rootProject
.
getTasksByName
(
"packYdl"
,
false
).
forEach
{
it
.
dependsOn
(
uploadArchives
)
}
}
else
{
rootProject
.
getTasksByName
(
"packM"
,
false
).
forEach
{
it
.
dependsOn
(
uploadArchives
)
}
}
}
\ No newline at end of file
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