Class GraalVMReachabilityMetadataService
- java.lang.Object
-
- org.graalvm.buildtools.gradle.internal.GraalVMReachabilityMetadataService
-
- All Implemented Interfaces:
org.graalvm.reachability.GraalVMReachabilityMetadataRepository
,org.gradle.api.services.BuildService<GraalVMReachabilityMetadataService.Params>
public abstract class GraalVMReachabilityMetadataService extends java.lang.Object implements org.gradle.api.services.BuildService<GraalVMReachabilityMetadataService.Params>, org.graalvm.reachability.GraalVMReachabilityMetadataRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GraalVMReachabilityMetadataService.Params
-
Constructor Summary
Constructors Constructor Description GraalVMReachabilityMetadataService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.nio.file.Path>
findConfigurationDirectoriesFor(java.lang.String gavCoordinates)
Returns a list of configuration directories for the specified artifact.java.util.Set<java.nio.file.Path>
findConfigurationDirectoriesFor(java.util.Collection<java.lang.String> modules)
Returns the set of configuration directories for all the modules supplied as an argument.java.util.Set<java.nio.file.Path>
findConfigurationDirectoriesFor(java.util.function.Consumer<? super org.graalvm.reachability.Query> queryBuilder)
Performs a generic query on the repository, returning a list of configuration directories.protected abstract org.gradle.api.file.ArchiveOperations
getArchiveOperations()
protected abstract org.gradle.api.file.FileSystemOperations
getFileOperations()
-
-
-
Method Detail
-
getArchiveOperations
@Inject protected abstract org.gradle.api.file.ArchiveOperations getArchiveOperations()
-
getFileOperations
@Inject protected abstract org.gradle.api.file.FileSystemOperations getFileOperations()
-
findConfigurationDirectoriesFor
public java.util.Set<java.nio.file.Path> findConfigurationDirectoriesFor(java.util.function.Consumer<? super org.graalvm.reachability.Query> queryBuilder)
Performs a generic query on the repository, returning a list of configuration directories. The query may be parameterized with a number of artifacts, and can be used to refine behavior, for example if a configuration directory isn't available for a particular artifact version.- Specified by:
findConfigurationDirectoriesFor
in interfaceorg.graalvm.reachability.GraalVMReachabilityMetadataRepository
- Parameters:
queryBuilder
- the query builder- Returns:
- the set of configuration directories matching the query
-
findConfigurationDirectoriesFor
public java.util.Set<java.nio.file.Path> findConfigurationDirectoriesFor(java.lang.String gavCoordinates)
Returns a list of configuration directories for the specified artifact. There may be more than one configuration directory for a given artifact, but the list may also be empty if the repository doesn't contain any. Never null.- Specified by:
findConfigurationDirectoriesFor
in interfaceorg.graalvm.reachability.GraalVMReachabilityMetadataRepository
- Parameters:
gavCoordinates
- the artifact GAV coordinates (group:artifact:version)- Returns:
- a list of configuration directories
-
findConfigurationDirectoriesFor
public java.util.Set<java.nio.file.Path> findConfigurationDirectoriesFor(java.util.Collection<java.lang.String> modules)
Returns the set of configuration directories for all the modules supplied as an argument.- Specified by:
findConfigurationDirectoriesFor
in interfaceorg.graalvm.reachability.GraalVMReachabilityMetadataRepository
- Parameters:
modules
- the list of modules- Returns:
- the set of configuration directories
-
-