associateWith

abstract fun associateWith(other: KotlinCompilation<*>)

Associates the current KotlinCompilation with another KotlinCompilation.

After this compilation will:

  • use the output of the other compilation as compile & runtime dependency

  • add all 'declared dependencies' present on other compilation

  • see all internal declarations of other compilation