[Gradle] Fix deprecated buildDir usage in IdeBinaryDependencyResolver

^KT-62527 In Progress
This commit is contained in:
Yahor Berdnikau
2023-12-05 16:22:39 +01:00
committed by Space Team
parent 6df25ac1be
commit ab1ce759a3
@@ -184,8 +184,14 @@ class IdeBinaryDependencyResolver @JvmOverloads constructor(
}
is OpaqueComponentArtifactIdentifier -> {
/* Files within the build directory still require a custom resolver */
if (artifact.file.absoluteFile.startsWith(sourceSet.project.buildDir.absoluteFile)) return@mapNotNull null
/* Files within the build directory still require a custom resolver */
if (
artifact.file.absoluteFile.startsWith(
sourceSet.project.layout.buildDirectory.get().asFile.absoluteFile
)
) {
return@mapNotNull null
}
IdeaKotlinResolvedBinaryDependency(
binaryType = binaryType, coordinates = IdeaKotlinBinaryCoordinates(