updated publishing code
This commit is contained in:
@@ -231,20 +231,16 @@ publishing {
|
||||
repositories {
|
||||
maven {
|
||||
if (project.hasProperty('NEXUS_URL') && project.hasProperty('FLAVOR')) {
|
||||
url = "$NEXUS_URL"
|
||||
credentials {
|
||||
username = "$NEXUS_URL"
|
||||
password = "$NEXUS_PASSWORD"
|
||||
repository(url: "$NEXUS_URL") {
|
||||
authentication(userName: "$NEXUS_USERNAME", password: "$NEXUS_PASSWORD")
|
||||
}
|
||||
pom {
|
||||
if ("$FLAVOR" == "PROD") {
|
||||
version = "navi_v$VERSION_NAME"
|
||||
} else {
|
||||
version = "navi_v$VERSION_NAME-SNAPSHOT"
|
||||
}
|
||||
artifactId = "$FLAVOR"
|
||||
groupId = "com.naviapp"
|
||||
if ("$FLAVOR" == "PROD") {
|
||||
pom.version = "navi_v$VERSION_NAME"
|
||||
} else {
|
||||
pom.version = "navi_v$VERSION_NAME-SNAPSHOT"
|
||||
}
|
||||
pom.artifactId = "$FLAVOR"
|
||||
pom.groupId = "com.naviapp"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user