How to use as git submodule?
See original GitHub issueHi,
I cloned into our vendor directory:
git submodule add [url] vendor/folio-reader
After, i have assed to settings.gradle:
include ':folio-reader'
project(':folio-reader').projectDir = file("../vendor/folio-reader")
After, i have added to dependencies:
implementation project(':folioreader')
But i got error:
Unable to resolve dependency for ':app@ubookDebug/compileClasspath': Could not resolve project :folioreader.
Can someone help me use it as git submodule?
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Git - Submodules - Git SCM
Let's start by adding an existing Git repository as a submodule of the repository that we're working on. To add a new submodule...
Read more >How To Add and Update Git Submodules - devconnected
The first thing you want to do is to add a Git submodule to your main project. In order to add a Git...
Read more >Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Submodules are...
Read more >Working with submodules - The GitHub Blog
Before you add a repository as a submodule, first check to see if you have a better alternative available. Git submodules work well...
Read more >How to create Git submodules in GitHub and GitLab by example
Clone the parent or top-level repository. · In the root of the parent, issue a “git submodule add” command and provide the GitHub...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@prsolucoes Please download this zip file https://drive.google.com/open?id=1qbfEZ_nWZK4BsKhlsWuD0xpJ8CoOGCJG
I have tried to mock a project structure like yours. Important steps to get started for you will be -
publishedGroupId
andartifact
, like I did in RootFolder\vendor\FolioReader-Android\folioreader\build.gradlegradlew install
on this path - RootFolder\vendor\FolioReader-Android. This will generate all the necessary files like .aar, .pom, etc in your {user}\m2\respository\com\ubook\folioreader\0.5.1.internalIn short, what this does is publishes your modified FolioReader locally and imports it through gradle using mavenLocal() repo.
Also please close #310, let’s have conversation on this issue.
Hi @hrishikesh-kadam , The drive url is not accessible and so we cannot see the sample code you did. Can you please give sample for how you did the steps 1 and 3 above.