Skip to content

Commit 1d172c9

Browse files
committed
fix(gradle-inspector): Also check for non-empty resolution alternatives
This is a preparation for Gradle 8.2 where this property becomes non-nullable. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 33f4b99 commit 1d172c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/package-managers/gradle-plugin/src/main/kotlin/GradleModelExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal fun Configuration.isRelevant(): Boolean {
4141

4242
// Check if a configuration is deprecated in favor of alternatives.
4343
val isDeprecatedConfiguration = GradleVersion.current() >= GradleVersion.version("6.0")
44-
&& this is DeprecatableConfiguration && resolutionAlternatives != null
44+
&& this is DeprecatableConfiguration && !resolutionAlternatives.isNullOrEmpty()
4545

4646
// Do not try to resolve dependencies metadata configurations as there often cause failures with Gradle itself. See
4747
// https://developer.android.com/build/releases/past-releases/agp-4-0-0-release-notes#dependency-metadata and

0 commit comments

Comments
 (0)