Commit 259fbaf5 by 万齐军

增加snapshot 仓库

parent 288f1e3b
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