Package dev.kikugie.stonecutter
Class StonecutterBuild
-
- All Implemented Interfaces:
-
dev.kikugie.stonecutter.StonecutterConfiguration
public class StonecutterBuild implements StonecutterConfiguration
Stonecutter plugin applied to the versioned build file.
-
-
Field Summary
Fields Modifier and Type Field Description private final StonecutterProjectcurrentprivate final StonecutterProjectactiveprivate final List<StonecutterProject>versionsprivate Booleandebugprivate final Projectproject
-
Method Summary
Modifier and Type Method Description final StonecutterProjectgetCurrent()Metadata of the currently processed version. final StonecutterProjectgetActive()final List<StonecutterProject>getVersions()BooleangetDebug()Enables Stonecutter debugging utilities. UnitsetDebug(Boolean debug)Enables Stonecutter debugging utilities. final ProjectgetProject()The effective Gradle project Unitswap(String identifier, String replacement)Creates a swap id. Unitconst(String identifier, Boolean value)Creates a constant accessible in stonecutter conditions. Unitdependency(String identifier, String version)Adds a dependency to the semver checks. Unitexclude(Path path)Excludes a file or directory from being processed. Unitexclude(String path)Excludes a file or directory from being processed. -
Methods inherited from class dev.kikugie.stonecutter.StonecutterConfiguration
comp, compare, const, consts, consts, debug, dependencies, dependencies, dependency, eval, exclude, swap, swaps, swaps -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCurrent
final StonecutterProject getCurrent()
Metadata of the currently processed version.
-
getActive
final StonecutterProject getActive()
-
getVersions
final List<StonecutterProject> getVersions()
-
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 namereplacement- Replacement string
-
const
Unit const(String identifier, Boolean value)
Creates a constant accessible in stonecutter conditions.
- Parameters:
identifier- Constant namevalue- Boolean value
-
dependency
Unit dependency(String identifier, String version)
Adds a dependency to the semver checks.
- Parameters:
identifier- Dependency nameversion- 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.
-
-
-
-