diff --git a/app/build.gradle b/app/build.gradle index 5811fd8..39a737d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,48 +37,6 @@ 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' diff --git a/navi-alfred/build.gradle b/navi-alfred/build.gradle index 2e4bf8e..064f5ab 100644 --- a/navi-alfred/build.gradle +++ b/navi-alfred/build.gradle @@ -50,6 +50,48 @@ static def formatString(String value) { return '"' + value + '"' } +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 'com.google.android.material:material:1.8.0'