[Gradle] Use objectFactory.fileCollection instead of lazy
^KT-43293
This commit is contained in:
+2
-2
@@ -166,14 +166,14 @@ abstract class AbstractKotlinNativeCompile<
|
|||||||
}
|
}
|
||||||
|
|
||||||
@get:Classpath
|
@get:Classpath
|
||||||
override val libraries: ConfigurableFileCollection by lazy {
|
override val libraries: ConfigurableFileCollection = objectFactory.fileCollection().from({
|
||||||
// Avoid resolving these dependencies during task graph construction when we can't build the target:
|
// Avoid resolving these dependencies during task graph construction when we can't build the target:
|
||||||
if (konanTarget.enabledOnCurrentHost)
|
if (konanTarget.enabledOnCurrentHost)
|
||||||
objectFactory.fileCollection().from(
|
objectFactory.fileCollection().from(
|
||||||
compilation.compileDependencyFiles.filterOutPublishableInteropLibs(project)
|
compilation.compileDependencyFiles.filterOutPublishableInteropLibs(project)
|
||||||
)
|
)
|
||||||
else objectFactory.fileCollection()
|
else objectFactory.fileCollection()
|
||||||
}
|
})
|
||||||
|
|
||||||
@get:Classpath
|
@get:Classpath
|
||||||
protected val friendModule: FileCollection = project.files({ compilation.friendPaths })
|
protected val friendModule: FileCollection = project.files({ compilation.friendPaths })
|
||||||
|
|||||||
Reference in New Issue
Block a user