diff --git a/libraries/tools/kotlin-gradle-plugin-idea/src/main/kotlin/org/jetbrains/kotlin/gradle/idea/tcs/extras/projectArtifactClasspathExtras.kt b/libraries/tools/kotlin-gradle-plugin-idea/src/main/kotlin/org/jetbrains/kotlin/gradle/idea/tcs/extras/projectArtifactClasspathExtras.kt index 6888fe5b154..8e7a7df4479 100644 --- a/libraries/tools/kotlin-gradle-plugin-idea/src/main/kotlin/org/jetbrains/kotlin/gradle/idea/tcs/extras/projectArtifactClasspathExtras.kt +++ b/libraries/tools/kotlin-gradle-plugin-idea/src/main/kotlin/org/jetbrains/kotlin/gradle/idea/tcs/extras/projectArtifactClasspathExtras.kt @@ -12,4 +12,12 @@ import org.jetbrains.kotlin.tooling.core.lazyProperty val projectArtifactsClasspathKey = extrasKeyOf("artifactsClasspath") +/** + * Classpath used inside IntelliJ/Kotlin to figure out the set of SourceSets that this dependency represents. + * The files contained here are the actual dependencies for a compilation. + * The dependency project's import will know about which SourceSets produced these artifacts which enables + * IntelliJ/Kotlin to resolve the SourceSets it needs to depend on. + * + * Note: Plugins like Android might use custom/different approaches on how to resolve this [IdeaKotlinProjectArtifactDependency] + */ val IdeaKotlinProjectArtifactDependency.artifactsClasspath by projectArtifactsClasspathKey.lazyProperty { IdeaKotlinClasspath() } \ No newline at end of file