-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (33 loc) · 989 Bytes
/
build.gradle
File metadata and controls
38 lines (33 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral() // ✅ replaced deprecated jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.1'
}
}
allprojects {
repositories {
google()
mavenCentral() // ✅ modern replacement for jcenter()
maven { url 'https://jitpack.io' } // ✅ keep only if you really need it
}
}
// ✅ Optional: ensure each module has a valid namespace
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (!namespace) {
// Fallback namespace if missing (replace with your base package)
namespace "com.tap.company.${project.name}"
}
}
}
}
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}