Skip to content

Commit cf9def0

Browse files
authored
Refactor build.gradle for better configuration
Updated build.gradle to include buildscript and allprojects sections.
1 parent 16a2ef7 commit cf9def0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
plugins {
2-
id 'com.android.application' version '8.0.2' apply false
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
google()
5+
mavenCentral()
6+
}
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:8.0.2'
9+
}
310
}
411

5-
dependencyResolutionManagement {
6-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
12+
allprojects {
713
repositories {
814
google()
915
mavenCentral()

0 commit comments

Comments
 (0)