Going through the documentation of Gradle's build configuration I can see several conflicts with my build on Android Studio 2020.3.1
using Gradle 7.0.3
.
For example, in the documentation is says that allProjects
block for repositories settings used by all modules should be added to the root build.gradle
while in fact it only allows me to configure modules repositories in the settings.gradle
under dependencyResolutionManagement
block.
Another example is applying plugins to application modules, in documentations it says the first line should be:
apply plugin: 'com.android.application'
While the one used in my build is:
plugins {
id 'com.android.application'
}
What I also noticed is that also JitPack uses the same configurations suggested in that documentations page for using a JitPack published library in projects:
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.arcm111.ScaleNumberPicker:final:1.0.1'
}
So my question is, are these documentation pages outdated, is Gradle 7
not fully supported yet, or am I looking at the wrong documentation?