Class StonecutterBuild

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

    
    public class StonecutterBuild
     implements StonecutterConfiguration
                        

    Stonecutter plugin applied to the versioned build file.

    • 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.

      • getProject

         final Project getProject()

        The effective Gradle project

      • 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.