[Gradle] Fix deprecated buildDir usage in IdeBinaryDependencyResolver
^KT-62527 In Progress
This commit is contained in:
committed by
Space Team
parent
6df25ac1be
commit
ab1ce759a3
+8
-2
@@ -184,8 +184,14 @@ class IdeBinaryDependencyResolver @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
is OpaqueComponentArtifactIdentifier -> {
|
is OpaqueComponentArtifactIdentifier -> {
|
||||||
/* Files within the build directory still require a custom resolver */
|
/* Files within the build directory still require a custom resolver */
|
||||||
if (artifact.file.absoluteFile.startsWith(sourceSet.project.buildDir.absoluteFile)) return@mapNotNull null
|
if (
|
||||||
|
artifact.file.absoluteFile.startsWith(
|
||||||
|
sourceSet.project.layout.buildDirectory.get().asFile.absoluteFile
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return@mapNotNull null
|
||||||
|
}
|
||||||
|
|
||||||
IdeaKotlinResolvedBinaryDependency(
|
IdeaKotlinResolvedBinaryDependency(
|
||||||
binaryType = binaryType, coordinates = IdeaKotlinBinaryCoordinates(
|
binaryType = binaryType, coordinates = IdeaKotlinBinaryCoordinates(
|
||||||
|
|||||||
Reference in New Issue
Block a user