refactoring and adding a history
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -1,12 +1,14 @@
|
||||
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.8.0' // Updated to be compatible with Gradle 8.x
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.3.1' // Updated to 8.0.0
|
||||
classpath 'com.android.tools.build:gradle:8.9.1' // More stable version
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +17,17 @@ allprojects {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
// 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user