DevOps / Gradle interview questions
Difference between declaring repositories in the buildScript section of the Gradle build or in the root level of the build.
buildScript { repositories { mavenCentral() } }
The repositories in the buildScript block are used to fetch the dependencies of your buildScript dependencies. For example, your plugin dependencies are listed here.
repositories { mavenCentral() }
The repositories on the root level are used to fetch the dependencies that your project depends on. So all the dependencies you need to compile your project.
More Related questions...