File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
3+ ext. kotlin_version = " 1.9.24"
34 repositories {
45 google()
56 mavenCentral()
67 }
78
89 dependencies {
9- // Modern Android Gradle Plugin
1010 classpath ' com.android.tools.build:gradle:8.5.2'
11- // Modern Kotlin
12- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24"
11+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1312 }
1413}
1514
@@ -20,13 +19,14 @@ allprojects {
2019 }
2120}
2221
23- plugins {
24- id " com.android.application" version " 8.4.2" apply false
25- id " com.android.library" version " 8.4.2" apply false
22+ rootProject. buildDir = " ../build"
23+ subprojects {
24+ project. buildDir = " ${ rootProject.buildDir} /${ project.name} "
25+ }
26+ subprojects {
27+ project. evaluationDependsOn(" :app" )
2628}
2729
28- // Custom clean task to ensure all build directories are deleted
29- tasks. register(' clean' , Delete ) {
30+ tasks. register(" clean" , Delete ) {
3031 delete rootProject. buildDir
31- subprojects. each { delete it. buildDir }
3232}
You can’t perform that action at this time.
0 commit comments