Commit 494d35eb by 万齐军

统一api版本,修改api groupId

parent 8368ee89
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.4'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.3'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.3'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library' ...@@ -2,8 +2,6 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "../../publish.gradle" apply from: "../../publish.gradle"
version = '1.0.0'
android { android {
compileSdkVersion rootProject.ext.android["compileSdkVersion"] compileSdkVersion rootProject.ext.android["compileSdkVersion"]
buildToolsVersion rootProject.ext.android["buildToolsVersion"] buildToolsVersion rootProject.ext.android["buildToolsVersion"]
......
...@@ -16,6 +16,7 @@ buildscript { ...@@ -16,6 +16,7 @@ buildscript {
ydlVersion = '0.0.0.0-a' ydlVersion = '0.0.0.0-a'
moduleVersion = '0.0.0.0-b' moduleVersion = '0.0.0.0-b'
apiVersion = "a.b.c"
} }
repositories { repositories {
maven { maven {
...@@ -37,12 +38,15 @@ buildscript { ...@@ -37,12 +38,15 @@ buildscript {
} }
} }
allprojects { p -> allprojects { p ->
if (p.name.startsWith("ydl-")) { if (p.path.startsWith(":ydl-")) {
p.version = ydlVersion p.version = ydlVersion
} }
if (p.name.startsWith("m-")) { if (p.path.startsWith(":m-")) {
p.version = moduleVersion p.version = moduleVersion
} }
if (p.path.startsWith(":api:")) {
p.version = apiVersion
}
repositories { repositories {
//壹点灵android maven私服 开发版 //壹点灵android maven私服 开发版
maven { maven {
......
ext { ext {
dev_mode = false //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.4-SNAPSHOT"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- "ydl-tuicore" : "0.0.25"
//第三步 若干
"m-confide" : "0.0.50.50",
"m-consultant" : "0.0.60.78",
"m-fm" : "0.0.30.09",
"m-user" : "0.0.62.72",
"m-home" : "0.0.24.09",
"m-im" : "0.0.21.69",
"m-dynamic" : "0.0.7.80",
"m-article" : "0.0.0.11",
"m-muse" : "0.0.28.87",
"m-tests" : "0.0.24.24",
"m-course" : "0.0.43.39",
//-------------- 功能组件 --------------
//mdt 组件
"ydl-tuicore" : "0.0.25",
//第一步
"ydl-platform" : "0.0.41.54",
//第二步 若干
"ydl-webview" : "0.2.0.7",
"ydl-media" : "0.0.21.52",
"ydl-pay" : "0.0.18.21",
"m-audioim" : "0.0.49.30.23",
"ydl-flutter-base": "0.0.14.44",
//以下 几乎不会动
"router" : "0.0.1",
"ydl-net" : "0.0.3.94",
"ydl-utils" : "0.0.3.12",
//-------------- 业务模块 API 层 --------------
"m-home-api" : "0.0.4.4",
] ]
ydl_app = [ ydl_app = [
appName : "壹点灵心理咨询", appName : "壹点灵心理咨询",
...@@ -224,17 +191,6 @@ ext { ...@@ -224,17 +191,6 @@ ext {
"ydl-media" : "com.ydl:ydl-media:${ydlVersion}", "ydl-media" : "com.ydl:ydl-media:${ydlVersion}",
"ydl-pay" : "com.ydl:ydl-pay:${ydlVersion}", "ydl-pay" : "com.ydl:ydl-pay:${ydlVersion}",
"m-audioim" : "com.ydl:m-audioim:${ydlVersion}", "m-audioim" : "com.ydl:m-audioim:${ydlVersion}",
//业务组件 <<--- 最后发这些(只发改过的)
"ydl-m-user-api" : "com.ydl:m-user-api:1.0.0",
"ydl-m-fm-api" : "com.ydl:m-fm-api:1.0.0",
"ydl-m-tests-api" : "com.ydl:m-tests-api:1.0.0",
"ydl-m-im-api" : "com.ydl:m-im-api:1.0.3",
"ydl-m-home-api" : "com.ydl:m-home-api:1.0.0",
"ydl-m-consultant-api" : "com.ydl:m-consultant-api:1.0.0",
"ydl-m-dynamic-api" : "com.ydl:m-dynamic-api:1.0.0",
"ydl-m-confide-api" : "com.ydl:m-confide-api:1.0.4",
"ydl-m-course-api" : "com.ydl:m-course-api:1.0.0",
] ]
} }
...@@ -52,6 +52,7 @@ afterEvaluate { ...@@ -52,6 +52,7 @@ afterEvaluate {
} else { } else {
pVersion = project.version pVersion = project.version
} }
def isApiModule = project.path.startsWith(":api:")
publishing { publishing {
publications { publications {
if (multiComponent.contains(project.path)) { if (multiComponent.contains(project.path)) {
...@@ -71,7 +72,7 @@ afterEvaluate { ...@@ -71,7 +72,7 @@ afterEvaluate {
} }
} else { } else {
component(MavenPublication) { component(MavenPublication) {
group 'com.ydl' group isApiModule ? 'com.ydl.api' : 'com.ydl'
version pVersion version pVersion
from components.release from components.release
artifact sourceJar(getName(), "${project.projectDir}") artifact sourceJar(getName(), "${project.projectDir}")
......
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