From 2b293e58056ea897c305bd39e21b42f5cd4d1a62 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 4 Feb 2022 19:29:36 +0530 Subject: Port build to Gradle 7.4-rc-2 (#1707) --- build-logic/android-plugins/src/main/kotlin/flavors/SlimTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-logic/android-plugins/src/main/kotlin/flavors') diff --git a/build-logic/android-plugins/src/main/kotlin/flavors/SlimTests.kt b/build-logic/android-plugins/src/main/kotlin/flavors/SlimTests.kt index ae14fdab..2b0cb8eb 100644 --- a/build-logic/android-plugins/src/main/kotlin/flavors/SlimTests.kt +++ b/build-logic/android-plugins/src/main/kotlin/flavors/SlimTests.kt @@ -20,7 +20,7 @@ import org.gradle.language.nativeplatform.internal.BuildType * variants in Android App and Library projects, and all tests in JVM projects. */ internal fun Project.configureSlimTests() { - if (providers.gradleProperty(SLIM_TESTS_PROPERTY).forUseAtConfigurationTime().isPresent) { + if (providers.gradleProperty(SLIM_TESTS_PROPERTY).isPresent) { // disable unit test tasks on the release build type for Android Library projects extensions.findByType()?.run { beforeVariants(selector().withBuildType(BuildType.RELEASE.name)) { -- cgit v1.2.3