TP-12345 | actions setup

This commit is contained in:
Rajinikanth
2023-04-27 15:27:27 +05:30
parent 0d45425a15
commit 6ca8cfe3d1
4 changed files with 135 additions and 0 deletions

View File

@@ -37,6 +37,48 @@ android {
}
}
publishing {
repositories {
if (project.hasProperty('NEXUS_URL')) {
maven {
url = "$NEXUS_URL"
credentials {
username = "$NEXUS_USERNAME"
password = "$NEXUS_PASSWORD"
}
}
}
}
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")
}
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)
}
}
}
}
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.core:core-ktx:1.8.0'