ProjectCollectionsGradleSettingsExtension

Constructors

constructor()

Properties

Link copied to clipboard
abstract val fileSpec: Property<Spec<File>>

An optional Spec operating on a File acting as eligibility criteria for File.isDirectory instances to adhere to before passing to org.gradle.api.initialization.Settings.include

Link copied to clipboard

An indicator controlling if middle layer empty projects are created by the inclusion of nested directory projects. This means converting something like some/project/path from :some:project:path to :some-project-path, thereby stopping the creation of empty org.gradle.api.Project :some and :some:project. The default is true.

Link copied to clipboard

An optional Property of ProjectNameMapper used to rename the argument passed to org.gradle.api.initialization.Settings.include to avoid the potential for empty org.gradle.api.Projects to be created. This aligns with Gradle best practices as outlined here.

Functions

Link copied to clipboard
abstract fun registerNestedProjectCollection(topLevelDir: String, depth: Int)

Register a collection of nested projects

Link copied to clipboard

Register a collection of 1-level-deep projects

abstract fun registerProjectCollection(topLevelDir: String, depth: Int)

Register a collection of nested projects

Link copied to clipboard
abstract infix fun String.toDepthOf(depth: Int)

A friendly-syntax approach to including collections of projects