41 lines
976 B
Groovy
41 lines
976 B
Groovy
buildscript {
|
|
ext.kotlin_version = '1.7.10'
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.4.0' // Change this to a version that supports compileSdkVersion 34
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
rootProject.buildDir = '../build'
|
|
subprojects {
|
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
|
}
|
|
subprojects {
|
|
project.evaluationDependsOn(':app')
|
|
}
|
|
subprojects {
|
|
project.configurations.all {
|
|
resolutionStrategy.eachDependency { details ->
|
|
if (details.requested.group == 'com.android.support'
|
|
&& !details.requested.name.contains('multidex') ) {
|
|
details.useVersion "27.1.1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tasks.register("clean", Delete) {
|
|
delete rootProject.buildDir
|
|
}
|