Class StonecutterController

  • All Implemented Interfaces:
    dev.kikugie.stonecutter.StonecutterConfiguration

    
    public class StonecutterController
     implements StonecutterConfiguration
                        

    Runs for stonecutter.gradle file, applying project configurations to versions and generating versioned tasks.

    • Constructor Detail

    • Method Detail

      • getDebug

         Boolean getDebug()

        Enables Stonecutter debugging utilities.

        Currently, it creates human-readable ASTs in the cache folder and adds stack traces to reported exceptions.

      • setDebug

         Unit setDebug(Boolean debug)

        Enables Stonecutter debugging utilities.

        Currently, it creates human-readable ASTs in the cache folder and adds stack traces to reported exceptions.

      • active

         final Unit active(String str)

        Assigns the active version to this project.

        Do not call on your own.

        Parameters:
        str - Project name
      • registerChiseled

         final Unit registerChiseled(TaskProvider<?> provider)

        Registers a ChiseledTask that delegates to the created task.

        Parameters:
        provider - Delegate task provider
      • swap

         Unit swap(String identifier, String replacement)

        Creates a swap id.

        Parameters:
        identifier - Swap name
        replacement - Replacement string
      • const

         Unit const(String identifier, Boolean value)

        Creates a constant accessible in stonecutter conditions.

        Parameters:
        identifier - Constant name
        value - Boolean value
      • dependency

         Unit dependency(String identifier, String version)

        Adds a dependency to the semver checks.

        Parameters:
        identifier - Dependency name
        version - Dependency version to check against in semantic version format
      • exclude

         Unit exclude(Path path)

        Excludes a file or directory from being processed.

        Parameters:
        path - Absolute path to the file.
      • exclude

         Unit exclude(String path)

        Excludes a file or directory from being processed.

        Parameters:
        path - Path to the file relative to the parent project directory (where stonecutter.gradle[.kts] is located) or a file extension qualifier (i.e.