TP-12345 | actions setup
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user