checkRepositories is not configuration cache compatible

Required for KTI-1553
This commit is contained in:
cristiangarcia
2024-02-13 15:24:15 +01:00
committed by Space Team
parent 7e3e9aafa4
commit e876a42e3d
@@ -233,6 +233,9 @@ fun Project.overrideNativeCompilerDownloadUrl() {
fun Project.addCheckRepositoriesTask() {
val checkRepoTask = tasks.register("checkRepositories") {
if (GradleVersion.current() >= GradleVersion.version("7.4")) {
withGroovyBuilder { "notCompatibleWithConfigurationCache"("Uses project in task action") }
}
val isTeamcityBuildInput = providers
.provider {
project.hasProperty("teamcity") || System.getenv("TEAMCITY_VERSION") != null