Commit b2a72dd1 by 万齐军

feat: local判断

parent defcce19
......@@ -27,12 +27,15 @@ afterEvaluate { project ->
pom.artifactId = project.getName().replace('_', "-")
pom.groupId = "com.ydl"
pom.version = getVersionName()
if (isLocal() == "true") {
def local = isLocal()
if (local == "true") {
repository(url: mavenLocal().url)
} else {
} else if (local == "false") {
repository(url: mavenRepositoryUrl) {
authentication(userName: "admin", password: "fjoi#1+#@")
}
} else {
println("请在local.properties中指定packageLocal的值[true|false]")
}
}
}
......
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