Package org.gradle.jvm.toolchain
Interface JavaToolchainRepositoryHandler
-
@Incubating public interface JavaToolchainRepositoryHandler
NamedDomainObjectListbased handler for configuring an ordered collection ofJavaToolchainRepositoryimplementations.- Since:
- 7.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<JavaToolchainRepository>getAsList()Returns a list of repositories that have been added so far.booleanremove(java.lang.String name)Removes the repository with the given name.voidrepository(java.lang.String name, Action<? super JavaToolchainRepository> configureAction)Utility method for creating a namedJavaToolchainRepositorybased on a configuration block.intsize()Returns the count of the repositories added so far.
-
-
-
Method Detail
-
repository
void repository(java.lang.String name, Action<? super JavaToolchainRepository> configureAction)Utility method for creating a namedJavaToolchainRepositorybased on a configuration block.
-
getAsList
java.util.List<JavaToolchainRepository> getAsList()
Returns a list of repositories that have been added so far. The list order reflects the order in which the repositories have been declared.- Since:
- 7.6.1
-
size
int size()
Returns the count of the repositories added so far.- Since:
- 7.6.1
-
remove
boolean remove(java.lang.String name)
Removes the repository with the given name.Returns true if a repository with the specified name exists and has been successfully removed, false otherwise.
- Since:
- 7.6.1
-
-