Creating & Publishing an Android Library (.aar) to Maven Jitpack Repo | Android Studio

Channel:
Subscribers:
1,030
Published on ● Video Link: https://www.youtube.com/watch?v=Zsjct40iJjE



Duration: 18:33
1,644 views
17


Creating & Publishing an Android Library (.aar) to Maven Jitpack Repo | Android Studio #android #maven #github

#jitpack #android #androidstudio #maven #aar #github #apple #programming #java #kotlin #mac #macos #m2pro #sonoma

*Long Story Short*
Step 1: Create an Android Project in which we will be creating our new Android Module/ Library. Build and run the Android Project on an Android Device /Emulator.

Step 2: Create an Android Library and add it as dependency to our Android project. Implement some logic to this library. To test this library is working, import it in Android project and try to call it's public method.

Step 3: Create Github repository to upload our project source code. Open https://jitpack.io and login into it using the same Git Account on which we created the repository.

Step 4: Build our library & create an AAR file which we would be publishing to Maven Repo. Configure Jitpack.yml & POM.xml files. Commit all these files to our Git Repo.

Step 5: Before publishing to Maven Repo directly, lets first try to publish the library to localMaven using the gradle command:
./gradlew publishMavenPublicationToMavenLocal

Step 6: Create & publish a new release on the Github using the AAR File which we have committed earlier. After creating this release, go back to Jitpack dashboard, check for the latest releases. Jitpack will automatically starts building the library, once done successfully you'll see the icon in green on Jitpack. You can also check the log dumped by Jitpack while building and publishing the library.

Step 7: Create a separate Android Project and use the newly published library as Maven Dependency in app's build.gradle using the implementation syntax. Exploring source code of our library and importing & using it in our project.

-------------------------------------

*Link to Files used*
Download files: https://drive.google.com/file/d/1z612_3Pdi7l6Ul2JgHoS_sVODo6jFZI5/view?usp=sharing

-------------------------------------

*Credits*
- Apple: macOS & Video Made with Final Cut Pro

- Music: Fluidscape by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/by/4.0/
Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100393
Artist: http://incompetech.com/

-------------------------------------
*Commands Used*
Gradle:
- publish module to local maven: ./gradlew publishMavenPublicationToMavenLocal
- list all available tasks: ./gradlew tasks

Git:
- initialize git: git init
- add remote url: git remote add origin "REPO_URL"
- check remote url: git remote -v
- add all the files: git add .
- push to git: git push (--force)

-------------------------------------

#imchampagnepapi

Thanks ❤️ for checking out this video, hope this helps.




Other Videos By Champ’s Hub


2023-10-08Install Numpy on iSH Terminal using Python3.9 | Numpy on iOS
2023-10-01Resolved! Xcode15 DT_TOOLCHAIN_DIR Error | Xcode15 build error 🫣
2023-09-25Create & Run NodeJS Web App on iOS | iSH Terminal
2023-09-24Creating & Running NodeJS WebApp on iOS (using iSH Terminal) | NodeJs on iOS
2023-09-15Installing CLang, gcc, make | Compiling C Program on iOS | iSH Terminal
2023-09-08Install vim on iSH Shell | iSH vim editor for code highlights | iSH Terminal✌🏻🙏
2023-09-07Flutter - Firebase Dynamic Link (Android & iOS) | DeepLink Setup Tutorial ✌🏻
2023-08-20Install Numpy on iSH Shell | Numpy with Python3.8 on iOS | iSH Terminal🥳✌🏻
2023-07-30[iSH] Upgrade Alpine Linux & Python3 in iSH Terminal | Python3 on iOS
2023-07-22Cheques: Shubh [8D Audio] | Punjabi Song 2023
2023-06-18Creating & Publishing an Android Library (.aar) to Maven Jitpack Repo | Android Studio
2023-06-16Safari Browser Updates | Transform any of your favorite website into WebApp with macOS Sonoma Safari
2023-06-12🍎iOS iMessage App Text Effects | iPhone Text Magic😸😵‍💫👏 #ios #imessage #apple #iostricks #wwdc
2023-06-11Amazon AWS Elastic Transcoder API | Media Transcoder #aws #transcodes #amazon #mac
2023-06-05Death Stranding Director’s Cut 4 Mac | WWDC23 #wwdc23 #deathstranding #appstore #mac #apple
2023-06-04First Official Apple 🍎 Store, BKC Mumbai, India | Apple Store in India #applestore #mumbai #apple
2023-05-27Naughty Monkey at Elephanata Caves, Mumbai | Monkey 🙈 skills 😹
2023-05-27Local Food Shops of Elephanta 🐘 Island | Elephanta Island | Mumbai ✌️
2023-05-22Sunset 🌅 Sea View 🌊 | Mumbai Sunset 2023
2023-05-08Apple’s AirPods Pro 2nd Generation 🎧 Spatial Audio | Active Noise Cancellation👌#airpodspro #apple
2023-04-28Call of Duty | Battle Royale 🔫 #ios #iphone13pro #codmobile #shorts #codshorts



Tags:
Android
Android Library
Android Library AAR
Jitpack
jitpack.io
Jitpack Maven
Maven Android
Publish Maven Repo
Android library maven repo
Create Android AAR
Create Android Library
Android Library using Android Studio
Android Module Publish to Maven
Jitpack Maven Publish Android Library
Android Studio Flamingo
Android Studio AAR
Build AAR Gradle
Gradle
Android Gradle Bundle Release
Release AAR Maven Repo
Github Maven Jitpack
Git Jitpack
repository Github
apple