Class VersionDetector

java.lang.Object
net.darkhax.curseforgegradle.VersionDetector

public final class VersionDetector extends Object
This class is responsible for detecting versions from properties in the build environment. Each task will have one instance of this class associated to it.
  • Field Details

    • isEnabled

      public boolean isEnabled
      A flag that determines if the auto-detection is enabled. This can be disabled with user configs.
  • Method Details

    • detectVersions

      public void detectVersions(GameVersions validGameVersions)
      Initiates the detection of game versions. If isEnabled is false this will not run.
      Parameters:
      validGameVersions - Valid game versions for the current game.
    • getDetectedVersions

      public Collection<String> getDetectedVersions()
      Gets an immutable collection of all the detected game versions.
      Returns:
      An immutable collection of all the detected game versions.