build: Refine gradle script

Signed-off-by: keta1 <k@ketal.icu>
This commit is contained in:
keta1
2022-03-17 11:42:42 +08:00
parent 2fe2a35636
commit 5c9df2b661
7 changed files with 78 additions and 55 deletions

View File

@@ -1,3 +1,6 @@
@file:Suppress("UnstableApiUsage")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
gradlePluginPortal()
@@ -5,6 +8,7 @@ pluginManagement {
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
@@ -15,9 +19,12 @@ dependencyResolutionManagement {
}
}
include(":app", ":stub", ":ksp", ":mmkv")
val compilerLibsDir: File = File(settingsDir, "libs")
project(":stub").projectDir = File(compilerLibsDir, "stub")
project(":ksp").projectDir = File(compilerLibsDir, "ksp")
project(":mmkv").projectDir = File(compilerLibsDir, "mmkv")
rootProject.name = "QAuxiliary"
include(
":app",
":libs:stub",
":libs:ksp",
":libs:mmkv"
)
buildCache { local { removeUnusedEntriesAfterDays = 1 } }