Files
simplefileupload-android/build.gradle

34 lines
972 B
Groovy
Raw Permalink Normal View History

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-04-14 22:37:20 -04:00
classpath 'com.android.tools.build:gradle:8.9.1' // More stable version
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
}