# javaRepositories

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

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
                }
            }
        }

Content copied to clipboard