-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
29 lines (24 loc) · 928 Bytes
/
build.gradle.kts
File metadata and controls
29 lines (24 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//import com.foundation.kts.*//根目录文件不允许使用 包导入,只能写全路径
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import com.foundation.kts.GlobalConfig
//buildSrc的初始化init
GlobalConfig.init(project)
buildscript {//这里不支持import
repositories {
com.foundation.kts.Repositories.defRepositories(this)
}
dependencies {
classpath("com.android.tools.build:gradle:7.4.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${com.foundation.kts.Dependencies.kotlinVersion}")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
com.foundation.kts.Repositories.defRepositories(this)
}
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.buildDir)
}