Skip to content

Commit

Permalink
[INJIMOB-1970] add dependency node in publish-artifact (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Paul <paul.apaul.abhishek.ap@gmail.com>
  • Loading branch information
abhip2565 committed Sep 5, 2024
1 parent 750e6b0 commit fcd677e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion kotlin/PixelPass/publish-artifact.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ publishing {
appendNode("organizationUrl", "https://github.com/mosip/pixelpass")
}

def dependenciesNode = asNode().appendNode('dependencies')
project.configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}

def pluginsNode = asNode().appendNode('build').appendNode('plugins')

def pluginNode = pluginsNode.appendNode('plugin')
Expand Down Expand Up @@ -82,7 +90,7 @@ publishing {
}
groupId = "io.mosip"
artifactId = "pixelpass"
version = "0.2.0"
version = "0.2.1-beta.1-SNAPSHOT"
if (project.gradle.startParameter.taskNames.any { it.contains('assembleRelease') }) {
artifacts {
aar {
Expand Down

0 comments on commit fcd677e

Please sign in to comment.