TP-12345 | actions fix
This commit is contained in:
@@ -2,9 +2,11 @@ plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'kotlin-kapt'
|
||||
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
def VERSION_NAME = "navi_v1.0.0"
|
||||
|
||||
android {
|
||||
namespace 'com.navi.alfred'
|
||||
compileSdk 32
|
||||
@@ -24,20 +26,6 @@ android {
|
||||
}
|
||||
}
|
||||
flavorDimensions "app"
|
||||
productFlavors {
|
||||
qa {
|
||||
dimension "app"
|
||||
buildConfigField 'String', 'BASE_URL', formatString('https://qa-alfred-ingester.np.navi-sa.in/')
|
||||
}
|
||||
dev {
|
||||
dimension "app"
|
||||
buildConfigField 'String', 'BASE_URL', formatString('https://dev-sa.navi.com/')
|
||||
}
|
||||
prod{
|
||||
dimension "app"
|
||||
buildConfigField 'String', 'BASE_URL', formatString('https://alfred-ingester.prod.navi-sa.in/')
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
@@ -62,31 +50,30 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
if (project.hasProperty('NEXUS_URL')) {
|
||||
maven(MavenPublication) {
|
||||
artifactId = "alfred"
|
||||
groupId = "com.navi.medici"
|
||||
|
||||
publications {
|
||||
if (project.hasProperty('NEXUS_URL')) {
|
||||
maven(MavenPublication) {
|
||||
artifactId = "alfred"
|
||||
groupId = "com.navi.medici"
|
||||
if ("$IS_SNAPSHOT" == "false") {
|
||||
version = "$VERSION_NAME"
|
||||
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-releases:com%2Fnavi%2Fmedici%2Falfred%2F$version")
|
||||
} else {
|
||||
version = "$VERSION_NAME-SNAPSHOT"
|
||||
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-snapshots:com%2Fnavi%2Fmedici%2Falfred%2F$version")
|
||||
}
|
||||
|
||||
if ("$IS_SNAPSHOT" == "false") {
|
||||
version = "$VERSION_NAME"
|
||||
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-releases:com%2Fnavi%2Fmedici%2Falfred%2F$version")
|
||||
} else {
|
||||
version = "$VERSION_NAME-SNAPSHOT"
|
||||
println("https://nexus.cmd.navi-tech.in/#browse/browse:maven-snapshots:com%2Fnavi%2Fmedici%2Falfred%2F$version")
|
||||
}
|
||||
artifact("build/outputs/aar/navi-alfred-release.aar")
|
||||
|
||||
artifact("build/outputs/aar/navi-alfred-release.aar")
|
||||
|
||||
pom.withXml {
|
||||
def dependenciesNode = asNode().appendNode('dependencies')
|
||||
configurations.implementation.allDependencies.each {
|
||||
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||
dependencyNode.appendNode('groupId', it.group)
|
||||
dependencyNode.appendNode('artifactId', it.name)
|
||||
dependencyNode.appendNode('version', it.version)
|
||||
pom.withXml {
|
||||
def dependenciesNode = asNode().appendNode('dependencies')
|
||||
configurations.implementation.allDependencies.each {
|
||||
def dependencyNode = dependenciesNode.appendNode('dependency')
|
||||
dependencyNode.appendNode('groupId', it.group)
|
||||
dependencyNode.appendNode('artifactId', it.name)
|
||||
dependencyNode.appendNode('version', it.version)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user