ModuleNode

constructor(path: String, name: String, type: ModuleType, plugins: Set<String> = emptySet(), tags: Set<String> = emptySet(), sourceSets: Set<String> = emptySet(), buildFilePath: String? = null, healthScore: Int? = null)(source)

Parameters

path

Fully-qualified Gradle project path, e.g. ":feature:login:ui".

name

Short module name - the last path segment, e.g. "ui".

type

Module type inferred from applied plugin IDs.

plugins

All plugin class names applied to this module. Used for type detection.

tags

Organisational tags inferred from the path segments, e.g. setOf("feature", "login") for ":feature:login:ui".

sourceSets

KMP source set names when the module applies the multiplatform plugin, e.g. setOf("commonMain", "androidMain", "iosMain"). Empty for non-KMP modules.

buildFilePath

Relative path to this module's build file from the project root, e.g. "feature/login/ui/build.gradle.kts". Used in violation messages so developers know exactly which file to edit. Null when the path could not be resolved.

healthScore

Architecture health score in 0, 100. Computed by HealthScoreCalculator during extraction. Higher is healthier. Null for nodes deserialized from graph files produced by older plugin versions.