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...

Комментарии • 20

  • @ridom8686
    @ridom8686 11 месяцев назад +9

    What the bar means?

  • @demadima3135
    @demadima3135 2 дня назад +1

    Thanks for this guide !

  • @medchaa
    @medchaa 14 дней назад

    Please do a vidéo for sharing a kmm library

  • @user-hz1wo4lo8g
    @user-hz1wo4lo8g 11 месяцев назад +3

    Any video to publish an android library in sonatype oss central maven using Java and gradle 8+?

  • @SociedadAndroide
    @SociedadAndroide 9 месяцев назад +1

    bar is not working....

  • @abhinavgupta1993
    @abhinavgupta1993 6 месяцев назад +1

    where do I get the bar?

  • @kenechukwuAkubue
    @kenechukwuAkubue 9 месяцев назад +2

    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?

    • @uwemnkereuwem6272
      @uwemnkereuwem6272 3 месяца назад

      The package is private that's why. If it was a public package you wouldn't need to do so.

  • @washtechotoyikama
    @washtechotoyikama 4 месяца назад

    I tried your way, everything is okay but i can not see in packages my package why ? Could you support to me ?

  • @senzou6464
    @senzou6464 6 месяцев назад +1

    thank u .. u save my day

  • @FerreraNaig
    @FerreraNaig 3 месяца назад

    Didn't work for me. Followed the steps and it's not publishing on git

  • @nareshmeena07
    @nareshmeena07 9 месяцев назад

    Can anyone please tell where do we find the related linraried for android

  • @UsmanKhan-qy1qy
    @UsmanKhan-qy1qy 8 месяцев назад

    Can any one tell me how do we publish such libraries to maven repository

  • @RajendraKumar-ds5xw
    @RajendraKumar-ds5xw 7 месяцев назад

    make latest android studio version

  • @LongNguyen-ym5zi
    @LongNguyen-ym5zi 4 месяца назад

    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.

  • @arvindshishodia5075
    @arvindshishodia5075 6 месяцев назад

    Thanks for the solution

  • @yeljayad
    @yeljayad 2 дня назад

    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)
    }
    }
    }
    }
    }
    }