Repositories should be added to the settings.gradle instead of allprojects
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
Android Studio introduced a new way to define repositories. If you have the `dependencyResolutionManagement` block in your settings.gradle, then you need to add the jitpack repository there instead of using the `allprojects` block
```
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
Maybe the documentation should be updated too.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the repository setup documentation that currently instructs users to add JitPack through the allprojects block. Compare it with the dependencyResolutionManagement example in settings.gradle; done means Android Studio users with FAIL_ON_PROJECT_REPOS have clear, correct instructions for adding the JitPack repository.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- build-system, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100