Skip to content

KotlinAnchorModuleProvider

KotlinAnchorModuleProvider provides modules which contain dependencies of libraries.

In the IJ monorepo, anchor modules are required for navigation from Kotlin compiler library sources to IJ platform sources. The Kotlin compiler depends on the IJ platform, but this dependency is not represented as JARs in the monorepo, but rather by certain monorepo source modules, which are made visible to the Kotlin compiler library sources as dependencies via an anchor module.

Types

Companion

object Companion

Functions

getAllAnchorModules

Returns all anchor modules configured in the project.

getAllAnchorModulesIfComputed

Returns all anchor modules configured in the project if they have already been computed and are not invalidated. This function must only be called from a write action to ensure that they are not being computed from another read action.

Return

The anchor modules if they are computed and the result is the same as getAllAnchorModules, or null otherwise.

getAnchorModule

abstract fun getAnchorModule(libraryModule: KaLibraryModule): KaSourceModule?