Commit 8c4abf1a by 万齐军

版本发布

parent d351e3ea
...@@ -14,7 +14,7 @@ buildscript { ...@@ -14,7 +14,7 @@ buildscript {
ydlrouter_version = '1.2.3' ydlrouter_version = '1.2.3'
constrait_support_version = '1.0.2' constrait_support_version = '1.0.2'
componentVersion = "a.b.c" componentVersion = "0.3.0.3-SNAPSHOT"
} }
repositories { repositories {
mavenCentral() mavenCentral()
...@@ -22,7 +22,7 @@ buildscript { ...@@ -22,7 +22,7 @@ buildscript {
mavenLocal() mavenLocal()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.1.3' classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }
......
ext { ext {
ydlPublishVersion = [
"ydl-tuicore" : "0.0.25"
]
ydl_app = [ ydl_app = [
appName : "壹点灵心理咨询", appName : "壹点灵心理咨询",
applicationId: "com.cxzapp.yidianling", applicationId: "com.cxzapp.yidianling",
......
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
...@@ -61,14 +61,14 @@ afterEvaluate { ...@@ -61,14 +61,14 @@ afterEvaluate {
if (multiComponent.contains(project.path)) { if (multiComponent.contains(project.path)) {
ydlComponent(MavenPublication) { ydlComponent(MavenPublication) {
group 'com.ydl' group 'com.ydl'
version pVersion + "-ydl" version "ydl-" + pVersion
from components.ydlRelease from components.ydlRelease
artifact sourceJar(getName(), "${project.projectDir}", "ydl") artifact sourceJar(getName(), "${project.projectDir}", "ydl")
pom.withXml(checkPomVersion) pom.withXml(checkPomVersion)
} }
xlzxComponent(MavenPublication) { xlzxComponent(MavenPublication) {
group 'com.ydl' group 'com.ydl'
version pVersion + "-xlzx" version "xlzx-" + pVersion
from components.xlzxRelease from components.xlzxRelease
artifact sourceJar(getName(), "${project.projectDir}", "xlzx") artifact sourceJar(getName(), "${project.projectDir}", "xlzx")
pom.withXml(checkPomVersion) pom.withXml(checkPomVersion)
...@@ -87,6 +87,7 @@ afterEvaluate { ...@@ -87,6 +87,7 @@ afterEvaluate {
def snapshot = pVersion.endsWith("-SNAPSHOT") def snapshot = pVersion.endsWith("-SNAPSHOT")
maven { maven {
url snapshot ? mavenRepositoryUrl2 : mavenRepositoryUrl url snapshot ? mavenRepositoryUrl2 : mavenRepositoryUrl
allowInsecureProtocol true
credentials { credentials {
username "admin" username "admin"
password "fjoi#1+#@" password "fjoi#1+#@"
......
apply plugin: 'maven'
def mavenRepositoryUrl = "http://nexus.yidianling.com/repository/AndroidReleases/"
def getVersionName() {
return hasProperty('VERSION_NAME') ? VERSION_NAME : rootProject.ext.ydlPublishVersion[project.getName()]
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
repository(url: mavenRepositoryUrl) {
authentication(userName: "admin", password: "fjoi#1+#@")
}
pom.project {
artifactId project.getName().replace('_', "-")
groupId "com.ydl"
version getVersionName()
packaging 'aar' //填写aar
}
}
}
\ No newline at end of file
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