Package net.kyori.indra.git
Class QueryTags<V>
java.lang.Object
net.kyori.indra.git.RepositoryValueSource<V,P>
net.kyori.indra.git.MappedRepositoryValueSource<I,V,RepositoryValueSource.Parameters>
net.kyori.indra.git.MappedRepositoryValueSource.Parameterless<List<? extends org.eclipse.jgit.lib.Ref>,V>
net.kyori.indra.git.QueryTags<V>
- Type Parameters:
V- the value type
- All Implemented Interfaces:
org.gradle.api.provider.ValueSource<V,RepositoryValueSource.Parameters>
- Direct Known Subclasses:
QueryTags.Names
public abstract class QueryTags<V>
extends MappedRepositoryValueSource.Parameterless<List<? extends org.eclipse.jgit.lib.Ref>,V>
A
MappedRepositoryValueSource that queries the git repository for a list of tags.
Returns an empty list if the repository is not present or if an error occurs while querying.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.kyori.indra.git.MappedRepositoryValueSource
MappedRepositoryValueSource.Parameterless<I,V> Nested classes/interfaces inherited from class net.kyori.indra.git.RepositoryValueSource
RepositoryValueSource.Parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull List<? extends org.eclipse.jgit.lib.Ref>getRawValue(@NotNull org.eclipse.jgit.api.Git repository) Obtains the raw value from the repository.Methods inherited from class net.kyori.indra.git.MappedRepositoryValueSource
mapValue, obtainMethods inherited from class net.kyori.indra.git.RepositoryValueSource
obtainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.provider.ValueSource
getParameters
-
Constructor Details
-
QueryTags
public QueryTags()
-
-
Method Details
-
getRawValue
@NotNull protected @NotNull List<? extends org.eclipse.jgit.lib.Ref> getRawValue(@NotNull @NotNull org.eclipse.jgit.api.Git repository) Description copied from class:MappedRepositoryValueSourceObtains the raw value from the repository.- Specified by:
getRawValuein classMappedRepositoryValueSource<List<? extends org.eclipse.jgit.lib.Ref>,V, RepositoryValueSource.Parameters> - Parameters:
repository- the git repository- Returns:
- the raw value, or
null
-