Interface GraalVMReachabilityMetadataRepositoryExtension
-
public interface GraalVMReachabilityMetadataRepositoryExtension
Extension used to configure the GraalVM reachability metadata repository.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.gradle.api.provider.Property<java.lang.Boolean>
getEnabled()
Property used to determine if the reachability metadata repository should be used.org.gradle.api.provider.SetProperty<java.lang.String>
getExcludedModules()
The set of modules for which we don't want to use the configuration found in the repository.org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String>
getModuleToConfigVersion()
A map from a module (org.group:artifact) to configuration repository config version.org.gradle.api.provider.Property<java.net.URI>
getUri()
A URI pointing to a GraalVM reachability metadata repository.org.gradle.api.provider.Property<java.lang.String>
getVersion()
An optional version of the remote repository: if specified, and that no URI is provided, it will automatically use a published repository from the official GraalVM reachability metadata repository.default void
uri(java.io.File file)
Convenience method to use a URI for the property.default void
uri(java.lang.String uri)
Convenience method to use a String for the URI property.
-
-
-
Method Detail
-
getEnabled
org.gradle.api.provider.Property<java.lang.Boolean> getEnabled()
Property used to determine if the reachability metadata repository should be used.- Returns:
- the enabled property
-
getUri
org.gradle.api.provider.Property<java.net.URI> getUri()
A URI pointing to a GraalVM reachability metadata repository. This must either be a local file or a remote URI. In case of remote files, only zip or tarballs are supported.- Returns:
- the uri property
-
getVersion
org.gradle.api.provider.Property<java.lang.String> getVersion()
An optional version of the remote repository: if specified, and that no URI is provided, it will automatically use a published repository from the official GraalVM reachability metadata repository.- Returns:
- the version of the repository to use
-
getExcludedModules
org.gradle.api.provider.SetProperty<java.lang.String> getExcludedModules()
The set of modules for which we don't want to use the configuration found in the repository. Modules must be declared with the `groupId:artifactId` syntax.- Returns:
- the set of excluded modules
-
getModuleToConfigVersion
org.gradle.api.provider.MapProperty<java.lang.String,java.lang.String> getModuleToConfigVersion()
A map from a module (org.group:artifact) to configuration repository config version.- Returns:
- the map of modules to forced configuration versions
-
uri
default void uri(java.lang.String uri) throws java.net.URISyntaxException
Convenience method to use a String for the URI property.- Parameters:
uri
- the URI- Throws:
java.net.URISyntaxException
- if URL is malformed
-
uri
default void uri(java.io.File file)
Convenience method to use a URI for the property.- Parameters:
file
- a file
-
-