SealedClassEnumizerExtension

Configuration for the sealed-class-enumizer Gradle plugin:

sealedClassEnumizer {
addRuntimeDependency = true
labelCase = LabelCase.AS_DECLARED
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val addRuntimeDependency: Property<Boolean>

Whether to add the runtime API dependency to each compilation automatically: api scope for production compilations (the generated API exposes runtime API types as supertypes, so consumers need them on their compile classpath) and implementation for test compilations. Defaults to true; disable it to declare the dependency manually.

Link copied to clipboard
abstract val labelCase: Property<LabelCase>

The project-wide default label case, applied to hierarchies whose @Enumize does not specify a concrete labelCase. Defaults to LabelCase.AS_DECLARED (no conversion).