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
450c3010
Commit
450c3010
authored
Jul 01, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home 改造
parent
add82e9f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
69 deletions
+86
-69
build.gradle
build.gradle
+2
-28
gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
build.gradle
m-home/build.gradle
+2
-0
modular.gradle
m-home/modular.gradle
+0
-39
maven_push_home.gradle
maven_push_home.gradle
+80
-0
settings.gradle
settings.gradle
+1
-1
No files found.
build.gradle
View file @
450c3010
...
...
@@ -3,7 +3,7 @@ apply from: "config.gradle"
buildscript
{
ext
{
kotlin_version
=
'1.
3.5
0'
kotlin_version
=
'1.
5.1
0'
support_version
=
'26.1.0'
minSdkVersion
=
21
targetSdkVersion
=
28
...
...
@@ -29,10 +29,8 @@ buildscript {
// maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies
{
classpath
'com.android.tools.build:gradle:
3.2.0
'
classpath
'com.android.tools.build:gradle:
4.2.2
'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath
'com.ydl.plugins:modular:1.0.3'
classpath
'com.ydl:notracepoint-gradle-plugin:0.0.3'
}
}
...
...
@@ -88,27 +86,3 @@ subprojects {
}
}
}
apply
plugin:
'modular-plugin'
modular
{
compileSdkVersion
28
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
repositories
{
maven
{
url
'http://nexus.yidianling.com/repository/AndroidReleases/'
credentials
{
username
"admin"
password
"fjoi#1+#@"
}
}
}
}
gradle/wrapper/gradle-wrapper.properties
View file @
450c3010
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
4.8.1-bin
.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
6.7.1-all
.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
m-home/build.gradle
View file @
450c3010
...
...
@@ -3,6 +3,8 @@ apply plugin: 'kotlin-android'
apply
plugin:
'kotlin-kapt'
apply
plugin:
'kotlin-android-extensions'
apply
from:
"../maven_push_home.gradle"
kapt
{
arguments
{
arg
(
"AROUTER_MODULE_NAME"
,
project
.
getName
())
...
...
m-home/modular.gradle
deleted
100644 → 0
View file @
add82e9f
modular
{
//模块包名
packageName
"com.yidianling.home"
// 模块发布需要的参数
publish
{
modules
{
xlzx
{
groupId
=
"com.ydl"
artifactId
=
"m-home-module-xlzx"
// 上报的 心理咨询 业务模块 aar 包的版本号
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()]
}
ydl
{
groupId
=
"com.ydl"
artifactId
=
"m-home-module-ydl"
// 上报的 壹点灵 业务模块 aar 包的版本号
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()]
}
}
api
{
// 壹点灵/心理咨询 业务模块 API层 jar包的发布信息
groupId
=
"com.ydl"
artifactId
=
"m-home-api"
//开发时注释掉版本号,发布api时打开
version
=
rootProject
.
ext
.
ydlPublishVersion
[
childProject
.
getName
()+
"-api"
]
// API 层打包时需要引入的依赖
apiDependencies
{
implementation
'androidx.appcompat:appcompat:1.2.0'
implementation
'androidx.fragment:fragment-ktx:1.2.4'
implementation
"com.google.code.gson:gson:2.8.2"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
'com.alibaba:arouter-api:1.4.1'
}
}
}
}
\ No newline at end of file
maven_push_home.gradle
0 → 100644
View file @
450c3010
apply
plugin:
'maven-publish'
def
mavenRepositoryUrl
=
"http://nexus.yidianling.com/repository/AndroidReleases/"
def
getVersionName
()
{
return
"0.0.0"
//0rootProject.ext.componentVersion
// return hasProperty('VERSION_NAME') ? VERSION_NAME : rootProject.ext.ydlPublishVersion[project.getName()]
}
def
pVersion
=
"0.0.0"
//rootProject.ext.componentVersion
def
sourceJar
(
String
name
,
String
path
)
{
return
project
.
tasks
.
create
(
"source${name.capitalize()}Jar"
,
Jar
)
{
group
=
"publishing"
description
=
"package ${name} source to jar"
from
"$path/src/main/java"
from
"$path/src/main/kotlin"
destinationDir
=
file
(
"$path/build/libs/"
)
classifier
=
'sources'
}
}
def
setScm
(
scm
)
{
// scm.appendNode('connection', "https://github.com/${System.getenv("GITHUB_ACTOR")}/Shadow.git")
//
// def commit
// if ("${System.env.CI}".equalsIgnoreCase("true")) {
// commit = System.getenv("GITHUB_SHA")
// } else {
// commit = gitShortRev()
// }
// scm.appendNode('url', "https://github.com/${System.getenv("GITHUB_ACTOR")}/Shadow/commit/$commit")
}
def
modifyPom
=
{
def
root
=
asNode
()
def
dependencies
=
root
.
get
(
'dependencies'
).
first
()
def
children
=
dependencies
.
children
()
for
(
def
child
:
children
)
{
def
versionNode
=
child
.
get
(
"version"
).
first
()
def
childVersion
=
versionNode
.
value
().
first
()
def
groupIdText
=
child
.
get
(
"groupId"
).
first
().
value
().
first
()
if
(
childVersion
==
"unspecified"
&&
groupIdText
.
startsWith
(
"com.ydl"
))
{
versionNode
.
setValue
(
pVersion
)
}
}
}
afterEvaluate
{
publishing
{
publications
{
if
(
project
.
name
.
startsWith
(
"ydl-"
)||
project
.
name
.
endsWith
(
"-api"
)||
project
.
name
==
"m-audioim"
)
{
component
(
MavenPublication
)
{
version
pVersion
from
components
.
release
artifact
sourceJar
(
getName
(),
"${project.projectDir}"
)
pom
.
withXml
(
modifyPom
)
}
}
if
(
project
.
name
.
startsWith
(
"m-"
)&&!
project
.
name
.
endsWith
(
"-api"
)&&
project
.
name
!=
"m-audioim"
)
{
ydlComponent
(
MavenPublication
)
{
group
'com.ydl'
version
pVersion
from
components
.
ydlRelease
artifact
sourceJar
(
getName
(),
"${project.projectDir}"
)
// pom.withXml(modifyPom)
}
xlzxComponent
(
MavenPublication
)
{
version
pVersion
from
components
.
xlzxRelease
artifact
sourceJar
(
getName
(),
"${project.projectDir}"
)
pom
.
withXml
(
modifyPom
)
}
}
}
repositories
{
// mavenLocal()
maven
{
url
"${rootProject.projectDir}/aaaaa"
//mavenLocal().url
}
}
}
}
\ No newline at end of file
settings.gradle
View file @
450c3010
...
...
@@ -5,4 +5,4 @@ include ':app',
':m-consultant'
,
':m-muse'
,
':m-fm'
,
':m-tests'
,
":m-course"
,
":m-im"
,
":m-dynamic"
,
"m-article"
,
"m-audioim"
,
"m-user"
,
"m-confide"
include
':ydl-tuicore'
,
':api:confide'
,
':api:dynamic'
,
':api:fm'
,
':api:consultant'
,
':api:course'
,
':api:user'
,
':api:tests'
,
':api:im'
':api:course'
,
':api:user'
,
':api:tests'
,
':api:im'
,
':api:home'
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