[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
|
||||
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:
|
||||
if (konanTarget.enabledOnCurrentHost)
|
||||
objectFactory.fileCollection().from(
|
||||
compilation.compileDependencyFiles.filterOutPublishableInteropLibs(project)
|
||||
)
|
||||
else objectFactory.fileCollection()
|
||||
}
|
||||
})
|
||||
|
||||
@get:Classpath
|
||||
protected val friendModule: FileCollection = project.files({ compilation.friendPaths })
|
||||
|
||||
Reference in New Issue
Block a user