chore: migrate build script to kts

This commit is contained in:
PeanutMelonSeedBigAlmond
2024-05-24 22:19:30 +08:00
parent a633e22ea5
commit b4087d4bcb
6 changed files with 136 additions and 134 deletions

29
android/build.gradle.kts Normal file
View File

@@ -0,0 +1,29 @@
//buildscript {
// repositories {
// google()
// mavenCentral()
// }
//
// dependencies {
// classpath("com.android.tools.build:gradle:7.3.0")
// classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
// }
//}
allprojects {
repositories {
google()
mavenCentral()
maven("https://www.jitpack.io")
}
}
rootProject.setBuildDir("../build")
subprojects {
project.setBuildDir("${rootProject.buildDir}/${project.name}")
project.evaluationDependsOn(":app")
}
task<Delete>("clean") {
delete(rootProject.buildDir)
}