2024-10-07 22:47:30 -04:00
|
|
|
|
|
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
buildscript {
|
2025-04-14 22:37:20 -04:00
|
|
|
ext.kotlin_version = '1.8.0' // Updated to be compatible with Gradle 8.x
|
2024-10-07 22:47:30 -04:00
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
dependencies {
|
2025-12-27 15:31:09 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:8.3.2' // More stable version
|
2025-04-14 22:37:20 -04:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2024-10-07 22:47:30 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
2025-04-14 22:37:20 -04:00
|
|
|
// Apply to all projects
|
|
|
|
|
configurations.all {
|
|
|
|
|
resolutionStrategy {
|
|
|
|
|
// Force a specific version of Kotlin stdlib
|
|
|
|
|
force "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
|
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
|
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.register('clean', Delete) {
|
|
|
|
|
delete rootProject.buildDir
|
2024-10-07 22:47:30 -04:00
|
|
|
}
|