[Gradle] CInteropMetadataDependencyTransformationTask: Fix overlapping outputLibrariesFileIndex

Before this change, IDE tasks from different projects
were re-using the same libraries index file, leading
to overwrites and therefore missing dependencies in the IDE

KT-49933
This commit is contained in:
Sebastian Sellmair
2023-01-20 14:41:44 +01:00
committed by Space Team
parent 6849804941
commit d4a9bb8d90
@@ -169,7 +169,7 @@ internal open class CInteropMetadataDependencyTransformationTask @Inject constru
@get:OutputFile
protected val outputLibrariesFileIndex: RegularFileProperty = objectFactory
.fileProperty()
.apply { set(outputDirectory.resolve("${sourceSet.name}.cinteropLibraries")) }
.apply { set(outputDirectory.resolve("${project.path.replace(":", ".")}-${sourceSet.name}.cinteropLibraries")) }
@get:Internal
internal val outputLibraryFiles: FileCollection = project.filesProvider {