updated publishing code

This commit is contained in:
rahul bhat
2022-05-25 14:30:05 +05:30
parent 055f832699
commit f010ba6c85

View File

@@ -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"
}
}
}