KontureExtension

open class KontureExtension(project: Project)

Gradle DSL extension for configuring Konture on consumer modules.

Typically applied inside dedicated architecture test subprojects (e.g. :konture-test).

Constructors

Link copied to clipboard
constructor(project: Project)

Properties

Link copied to clipboard

Analysis performance and caching configuration.

Link copied to clipboard
val baselinePath: Property<String>

Relative path to the baseline JSON file.

Link copied to clipboard
val excludeClasses: ListProperty<String>

List of class names to exclude from architecture rules.

Link copied to clipboard
val excludeConfigurations: ListProperty<String>

List of build configuration names to exclude from architecture rules.

Link copied to clipboard
val excludeModules: ListProperty<String>

List of module paths to exclude from architecture rules.

Link copied to clipboard
val excludePackages: ListProperty<String>

List of package names to exclude from architecture rules.

Link copied to clipboard

Whether to fail test execution if resolved violations exist in baseline (ratchet mode).

Link copied to clipboard
val language: Property<String>

Locale string for error and assertion message internationalization.

Link copied to clipboard
val logLevel: Property<String>

Diagnostic log level string.

Link copied to clipboard

Whether to log informational messages when resolved violations exist in baseline.

Functions

Link copied to clipboard
fun baselinePath(path: String)

Sets the baseline relative path.

Link copied to clipboard
fun excludeClasses(vararg classes: String)

Adds classes to the excluded classes list.

Link copied to clipboard
fun excludeConfigurations(vararg configurations: String)

Adds configurations to the excluded build configurations list.

Link copied to clipboard
fun excludeModules(vararg modules: String)

Adds modules to the excluded modules list.

Link copied to clipboard
fun excludePackages(vararg packages: String)

Adds packages to the excluded packages list.

Link copied to clipboard

Configures whether to fail test execution if resolved violations exist in baseline (ratchet mode).

Link copied to clipboard
fun language(lang: String)

Sets the message locale lang.

Link copied to clipboard
fun logLevel(level: String)

Sets the diagnostic level.

Link copied to clipboard

Configures whether to log informational messages when resolved violations exist in baseline.