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.

JavaToolchainRepositoryHandler

org.gradle.api.NamedDomainObjectList based handler for configuring an ordered collection of JavaToolchainRepository implementations.

Since

7.6

Functions

Link copied to clipboard
Returns a list of repositories that have been added so far.
Link copied to clipboard
abstract fun remove(name: String): Boolean
Removes the repository with the given name.
Link copied to clipboard
abstract fun repository(name: String, configureAction: Action<in JavaToolchainRepository>)
Utility method for creating a named JavaToolchainRepository based on a configuration block.
Link copied to clipboard
abstract fun size(): Int
Returns the count of the repositories added so far.