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.
  • 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:
      obtain in interface org.gradle.api.provider.ValueSource<com.cleanroommc.versioning.gradle.GitSnapshot,GitSnapshotValueSource.Parameters>