Class ReleaseCounterService

java.lang.Object
aQute.bnd.gradle.ReleaseCounterService
All Implemented Interfaces:
AutoCloseable, org.gradle.api.services.BuildService<org.gradle.api.services.BuildServiceParameters.None>

public abstract class ReleaseCounterService extends Object implements org.gradle.api.services.BuildService<org.gradle.api.services.BuildServiceParameters.None>, AutoCloseable
A counter helper to determine which task is the last release task.
  • Constructor Details

    • ReleaseCounterService

      public ReleaseCounterService()
      Default public constructor.
  • Method Details

    • setInitialCount

      public void setInitialCount(int n)
    • isLastReleaseTask

      public boolean isLastReleaseTask()
      Call during execution by each release task. Returns true exactly once: for the last release task that runs.
      Returns:
      true if this is the last task to be released
    • getRemaining

      public int getRemaining()
      Returns:
      the current count of remaining.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable