Files
HouseProperty/build.gradle

51 lines
1.8 KiB
Groovy
Raw Permalink Normal View History

2020-08-03 09:11:54 +08:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
2026-01-07 11:13:33 +08:00
ext {
agp_version = '8.7.3'
kotlin_version = '1.9.24'
}
2020-08-03 09:11:54 +08:00
repositories {
2026-01-07 11:13:33 +08:00
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google
2020-08-03 09:11:54 +08:00
google()
2026-01-07 11:13:33 +08:00
mavenCentral()
maven { url "https://jitpack.io" }
2020-08-03 09:11:54 +08:00
}
dependencies {
2026-01-07 11:13:33 +08:00
classpath "com.android.tools.build:gradle:$agp_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2020-08-03 09:11:54 +08:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
2026-01-07 11:13:33 +08:00
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/repository/public' }//jcenter
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }//gradle-plugin
maven { url 'https://maven.aliyun.com/repository/central' }//central
maven { url 'https://maven.aliyun.com/repository/google' }//google
2020-08-03 09:11:54 +08:00
google()
2026-01-07 11:13:33 +08:00
mavenCentral()
maven { url "https://jitpack.io" }
}
// 统一配置所有 Kotlin 编译任务的 JVM 目标版本
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = '1.8'
}
2020-08-03 09:11:54 +08:00
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}