gradle
8.5

# environmentVariablesPrefixedBy

@Incubating
abstract fun environmentVariablesPrefixedBy(variableNamePrefix: String): Provider<Map<String, String>>(source)
@Incubating
abstract fun environmentVariablesPrefixedBy(variableNamePrefix: Provider<String>): Provider<Map<String, String>>(source)

Creates a Provider whose value is a name-to-value map of the environment variables with the names starting with the given prefix. The prefix comparison is case-sensitive. The returned map is immutable.

#### Return

The provider. Never returns null.

#### Parameters

variableNamePrefix

The prefix of the environment variable names