Step-by-Step Guide to Publish your Android Library!
HTML-код
- Опубликовано: 11 сен 2024
- 💻 Join my new Refactoring Legacy Code course now: bit.ly/47dzTLT
📩 Sign up for my new newsletter here 👉 bit.ly/YCNewsl...
Join my Community on Discord:
/ discord
If you want to share your library with the world, this tutorial is perfect for you. In this video, we will explain the step-by-step process of setting up Maven Publishing and utilizing GitHub Packages to make your library accessible to other developers.
👨🏽🏭 Who I am:
I'm Younes Charfaoui, a Junior Software Engineer and an Android Developer. I make videos about Android development, Technology, and productivity for software engineers.
😋 Be My Friend:
💻 GitHub - github.com/You...
🐦 Twitter - / charfaouiyounes
📑 Medium - / mxcsyounes
📷 Instagram - / charfaoui.younes
🌍 My website - www.charfaouiy...
What the bar means?
Thanks for this guide !
Glad it helped!
Please do a vidéo for sharing a kmm library
Any video to publish an android library in sonatype oss central maven using Java and gradle 8+?
bar is not working....
where do I get the bar?
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
make latest android studio version
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
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)
}
}
}
}
}
}