Commit d0d1fdcf by 万齐军

Merge branch 'feat/qj/confide_optimize' into 'd/v_confide_optimized'

增加snapshot 仓库

See merge request app_android_lib/YDL-Component!224
parents 6b7d5d49 259fbaf5
apply plugin: 'maven'
def mavenRepositoryUrl = "http://nexus.yidianling.com/repository/AndroidReleases/"
def mavenRepositoryUrl2 = "http://nexus.yidianling.com/repository/AndroidSnapshots/"
def getVersionName() {
def publishVersion = rootProject.ext.ydl2PublishVersion
......@@ -32,7 +33,8 @@ afterEvaluate { project ->
if (local == "true") {
repository(url: mavenLocal().url)
} else if (local == "false") {
repository(url: mavenRepositoryUrl) {
def snapshot = getVersionName().endsWith("-SNAPSHOT")
repository(url: snapshot ? mavenRepositoryUrl2 : mavenRepositoryUrl) {
authentication(userName: "admin", password: "fjoi#1+#@")
}
} else {
......@@ -48,7 +50,7 @@ afterEvaluate { project ->
, project.getName()
, getVersionName()
, "aar"
, isLocal() ? "Local" : "release"
, "packageLocal:" + isLocal()
)
}
// rootProject.getTasksByName("aa",false).forEach{println(it)}
......
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