加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
settings.gradle.kts 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id("com.gradle.enterprise").version("3.3.4")
}
include("deprecatedPluginsTest",
"inline",
"extTest",
"groovyTest",
"kotlinTest",
"kotlinReleaseCoroutinesTest",
"android",
"junit-jupiter",
"junitJupiterExtensionTest",
"junitJupiterInlineMockMakerExtensionTest",
"module-test",
"memory-test",
"errorprone",
"junitJupiterParallelTest",
"osgi-test")
rootProject.name = "mockito"
val koltinBuildScriptProject = hashSetOf("junitJupiterExtensionTest", "junitJupiterInlineMockMakerExtensionTest")
fun buildFileExtensionFor(projectName: String) =
if (projectName in koltinBuildScriptProject) ".gradle.kts" else ".gradle"
fun buildFileFor(projectName: String) =
"$projectName${buildFileExtensionFor(projectName)}"
rootProject.children.forEach { project ->
val projectDirName = "subprojects/${project.name}"
project.projectDir = File(settingsDir, projectDirName)
project.buildFileName = buildFileFor(project.name)
require(project.projectDir.isDirectory) {
"Project directory ${project.projectDir} for project ${project.name} does not exist."
}
require(project.buildFile.isFile) {
"Build file ${project.buildFile} for project ${project.name} does not exist."
}
}
//Posting Build scans to https://scans.gradle.com
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
buildCache {
local {
isEnabled = !System.getenv().containsKey("CI")
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化