AalekhSettingsPlugin

class AalekhSettingsPlugin : Plugin<Settings> (source)

Settings-scoped Aalekh plugin - the primary entry point.

Applied in settings.gradle.kts, this plugin is loaded in the settings classloader scope which is stable across configuration cache (CC) entries. This is the correct scope for a plugin used with includeBuild - project plugins loaded in the root-project(export) scope are NOT preserved across CC entries when the plugin comes from a composite build.

Consumer usage

// settings.gradle.kts
plugins {
id("io.github.shivathapaa.aalekh") version "<latest>"
}

See the README for the current published version.

Configure the extension on the root project, not on settings:

// build.gradle.kts (root project)
aalekh {
openBrowserAfterReport.set(false)
includeTestDependencies.set(false) // exclude test deps from graph
includeCompileOnlyDependencies.set(true) // include compileOnly
}

Architecture note - settings plugin vs project plugin

AalekhPlugin (the project plugin) is kept for backwards compatibility but is deprecated. AalekhSettingsPlugin is the canonical implementation. All logic lives here; AalekhPlugin delegates to the same task types.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(settings: Settings)