41 lines
905 B
Groovy
41 lines
905 B
Groovy
// android/build.gradle (Project-level Gradle file)
|
|
|
|
buildscript {
|
|
ext.kotlin_version = "1.8.10"
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// Here is where the 'classpath' declarations go
|
|
classpath 'com.android.tools.build:gradle:8.1.2'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
// Then your allprojects block can be minimal in newer Gradle versions:
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
// If you want to customize build directory paths:
|
|
rootProject.buildDir = "../build"
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
|
|
// This is optional, depends on your workflow:
|
|
subprojects {
|
|
project.evaluationDependsOn(":app")
|
|
}
|
|
|
|
// A custom clean task:
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|