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.

javaRepositories

abstract fun javaRepositories(configureAction: Action<in JavaToolchainRepositoryHandler>)(source)

org.gradle.api.NamedDomainObjectList based handler for configuring an ordered collection of Java toolchain repositories:

toolchainManagement {
    jvm {
        javaRepositories {
            repository('registry1') {
                resolverClass = com.example.CustomToolchainRegistry1
                credentials {
                    username = "user"
                    password = "password"
                }
                authentication {
                    digest(BasicAuthentication)
                }
            }
            repository('registry2') {
                resolverClass = com.example.CustomToolchainRegistry2
            }
        }
    }

Since

7.6