[Gradle] Rename IdeSlowSourcesAndDocumentationResolver.kt to IdeArtifactResolutionQuerySourcesAndDocumentationResolver
^KT-55289 Verification Pending
This commit is contained in:
committed by
Space Team
parent
a438c12bf5
commit
6457bae80c
+1
-1
@@ -126,7 +126,7 @@ internal fun IdeMultiplatformImport(extension: KotlinProjectExtension): IdeMulti
|
||||
|
||||
if (extension.project.kotlinPropertiesProvider.enableSlowIdeSourcesJarResolver) {
|
||||
registerDependencyResolver(
|
||||
resolver = IdeSlowSourcesAndDocumentationResolver,
|
||||
resolver = IdeArtifactResolutionQuerySourcesAndDocumentationResolver,
|
||||
constraint = SourceSetConstraint.unconstrained,
|
||||
phase = IdeMultiplatformImport.DependencyResolutionPhase.BinaryDependencyResolution,
|
||||
level = IdeMultiplatformImport.DependencyResolutionLevel.Default
|
||||
|
||||
+9
-1
@@ -21,7 +21,15 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.resolvableMetadataConfiguration
|
||||
import org.jetbrains.kotlin.gradle.plugin.sources.internal
|
||||
import org.jetbrains.kotlin.gradle.plugin.sources.project
|
||||
|
||||
internal object IdeSlowSourcesAndDocumentationResolver : IdeDependencyResolver {
|
||||
/**
|
||||
* Resolved sources.jar and javadoc.jar files using Gradle's artifact resolution query.
|
||||
* ⚠️: This resolution method is slow and shall be replaced by ArtifactViews. However,
|
||||
* before 1.8.20 Kotlin MPP did not publish sources as variants which requires us to keep this resolver
|
||||
* for compatibility with libraries published prior to 1.8.20
|
||||
*
|
||||
* cc Anton Lakotka, Sebastian Sellmair
|
||||
*/
|
||||
internal object IdeArtifactResolutionQuerySourcesAndDocumentationResolver : IdeDependencyResolver {
|
||||
override fun resolve(sourceSet: KotlinSourceSet): Set<IdeaKotlinDependency> {
|
||||
val project = sourceSet.project
|
||||
val configuration = sourceSet.internal.resolvableMetadataConfiguration
|
||||
Reference in New Issue
Block a user