Build: Don't run checkBuild tasks on check, add checkBuild to buildSrc

This commit is contained in:
Vyacheslav Gerasimov
2019-06-06 21:22:54 +03:00
parent 2769dc8359
commit 16b9c15133
2 changed files with 4 additions and 5 deletions
+2 -4
View File
@@ -410,10 +410,8 @@ allprojects {
} }
// Aggregate task for build related checks // Aggregate task for build related checks
tasks.register("checkBuild") { tasks.register("checkBuild")
tasks.findByName("check")?.dependsOn(this)
}
apply(from = "$rootDir/gradle/cacheRedirector.gradle.kts") apply(from = "$rootDir/gradle/cacheRedirector.gradle.kts")
} }
} }
+2 -1
View File
@@ -111,8 +111,9 @@ fun Project.`samWithReceiver`(configure: org.jetbrains.kotlin.samWithReceiver.gr
tasks["build"].dependsOn(":prepare-deps:build") tasks["build"].dependsOn(":prepare-deps:build")
allprojects { allprojects {
tasks.register("checkBuild")
afterEvaluate { afterEvaluate {
apply(from = "$rootDir/../gradle/cacheRedirector.gradle.kts") apply(from = "$rootDir/../gradle/cacheRedirector.gradle.kts")
tasks["check"].dependsOn(tasks["checkRepositories"])
} }
} }