Class GitSnapshotValueSource
java.lang.Object
com.cleanroommc.versioning.gradle.GitSnapshotValueSource
- All Implemented Interfaces:
org.gradle.api.provider.ValueSource<com.cleanroommc.versioning.gradle.GitSnapshot,GitSnapshotValueSource.Parameters>
public abstract class GitSnapshotValueSource
extends Object
implements org.gradle.api.provider.ValueSource<com.cleanroommc.versioning.gradle.GitSnapshot,GitSnapshotValueSource.Parameters>
Reads the Git state the version is computed from.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInputs for the snapshot. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.gradle.process.ExecOperationscom.cleanroommc.versioning.gradle.GitSnapshotobtain()Methods 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
-
GitSnapshotValueSource
public GitSnapshotValueSource()
-
-
Method Details
-
getExecOperations
@Inject protected abstract org.gradle.process.ExecOperations getExecOperations()- Returns:
- the injected process runner
-
obtain
public com.cleanroommc.versioning.gradle.GitSnapshot obtain()- Specified by:
obtainin interfaceorg.gradle.api.provider.ValueSource<com.cleanroommc.versioning.gradle.GitSnapshot,GitSnapshotValueSource.Parameters>
-