To add a submodule with JitPack, follow these steps:
Navigate to your repository on GitHub and click the "Settings" tab.
Scroll down to the "GitHub Pages" section and make sure the "Source" is set to "master branch /docs folder".
Create a folder in your repository root directory called "submodules".
Navigate to the "submodules" folder and create a new submodule by running the following command in your terminal:
submodule add -b master https://github.com/<username>/<repository>.git
Replace <username>
and <repository>
with the GitHub username and repository of the submodule you want to add.
Commit and push the changes to your repository.
Go to the JitPack website and enter your repository's URL.
Click "Check" to verify that your repository has been added to JitPack.
Go back to your repository on GitHub and create a new release.
JitPack will automatically build and package your repository, including any submodules, whenever a new release is created.
To use your submodule in another project, add the following dependency to your build.gradle or pom.xml file:
'com.github.<username>:<repository>:<release-tag>'
Replace <username>
, <repository>
, and <release-tag>
with the appropriate values for your submodule.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-25 19:21:01 +0000
Seen: 15 times
Last updated: May 25 '23
Can a transitive dependency in gradle be made exclusively for runtime purposes?
Why can't IntelliJ IDEA detect the Kotlin multiplatform library?
How do compileSdkVersion and targetSdkVersion differ from each other?
What does the error message "Failed to apply plugin [id 'com.jfrog.artifactory']" mean?
Why doesn't the Android Studio display the layout preview once MaterialCalendarView has been added?
How to update the outdated WebSecurityConfigurerAdapter in Spring Boot?
How can we add animation to the user interface using jetpack compose?