For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

ValueSourceParameters

Marker interface for parameter objects to ValueSources.

Parameters are data holders for the inputs of a value source. Parameter types should be interfaces, only declaring getters for org.gradle.api.provider.Property-like objects. They are configured in the ValueSourceSpec and isolated before the value is obtained.

Parameters must not inject services. An @Inject getter or constructor on a parameters type is deprecated and will fail with an error in Gradle 10. Compute values that need a service where the provider is created and pass them in as parameters.

public interface MyParameters extends ValueSourceParameters {
    Property<String> getStringParameter();
}

Since

6.1

Inheritors

Types

Link copied to clipboard
class None : NoneParameters, ValueSourceParameters
Used for sources without parameters.