project-collections-gradle-settings-plugin • v5.3.0
Nested Project Collections
An org.gradle.api.initialization.Settings plugin to streamline calls to include(...)
based on nested collections of subprojects.
Recursive Collection
Eliminate hundreds of manual include(...) declarations by specifying top-level directory roots and target traversal depth.
Filtering & Specs
Apply custom file specifications to selectively filter subproject directories based on build files, naming conventions, or custom predicates.
Configuration Cache Friendly
Engineered and tested for full compatibility with Gradle Configuration Cache and Project Isolation features.
terminal Setup & Application
Apply the plugin directly in your settings.gradle.kts:
// settings.gradle.kts
plugins {
id("dev.fnc314.gradle.plugins.settings.project-collections-gradle-settings-plugin") version "5.3.0"
}
Or declare it within your gradle/libs.versions.toml:
[plugins]
project-collections = { id = "dev.fnc314.gradle.plugins.settings.project-collections-gradle-settings-plugin", version = "5.3.0" }
code DSL Configuration
// settings.gradle.kts
projectCollections {
// Select top-level directories and declare the arbitrary depth
"sub-projects" toDepthOf 3
fileSpec.set { file: File ->
// Provide explicit logical checks against a File object
// after having verified File.isDirectory() is true
file.name != "scratch"
}
}