why do you have to pass your credentials when you want to sync to your project? if I wan to use same library, i would have to request for your password?
Thank you for sharing this, however in case a bit different 1. I published library A as you did above 2. I create another library B using lib A as private repository 3. Now, I want to publish lib B, but it always complains that couldn't find lib A from the project. Did you have this case before? Note that: I can run and build lib B successfully, just can't publish it. Looking forward to your answer, thank you.
What the bar means?
Thanks for this guide !
Glad it helped!
Any video to publish an android library in sonatype oss central maven using Java and gradle 8+?
where do I get the bar?
Please do a vidéo for sharing a kmm library
bar is not working....
why do you have to pass your credentials when you want to sync to your project? if I wan to use same library, i would have to request for your password?
The package is private that's why. If it was a public package you wouldn't need to do so.
I tried your way, everything is okay but i can not see in packages my package why ? Could you support to me ?
thank u .. u save my day
My pleasure
Didn't work for me. Followed the steps and it's not publishing on git
Can anyone please tell where do we find the related linraried for android
Can any one tell me how do we publish such libraries to maven repository
Thank you for sharing this, however in case a bit different
1. I published library A as you did above
2. I create another library B using lib A as private repository
3. Now, I want to publish lib B, but it always complains that couldn't find lib A from the project.
Did you have this case before?
Note that: I can run and build lib B successfully, just can't publish it.
Looking forward to your answer, thank you.
Same has happened with me
make latest android studio version
Thanks for the solution
u need to add this part for dependency injection :
To integrate dependency :
project.afterEvaluate {
publishing {
publications {
libraryProject(MavenPublication) {
groupId = 'com.xxxx.xxxxx'
artifactId = 'arxxxxxx'
version = '0.1'
artifact bundleReleaseAar
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each { dependency ->
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', dependency.group)
dependencyNode.appendNode('artifactId', dependency.name)
dependencyNode.appendNode('version', dependency.version)
}
}
}
}
}
}