dependsOn

open override fun dependsOn(dependencyNotation: Any)

Adds a dependency for the codegen. Use this when some types/fragments are generated in upstream modules.


open override fun dependsOn(dependencyNotation: Any, bidirectional: Boolean)

Same as dependsOn but allows for automatic detection of used types. This works by adding the current project to the upstream project dependencies using cross-project configuration.

This function is experimental and not compatible with Gradle project isolation.

Parameters

bidirectional

if true and if dependencyNotation is a project dependency, automatically configure the symmetrical dependency for automatic detection of used types.