Package org.savantbuild.parser.groovy
Class WorkflowDelegate
java.lang.Object
org.savantbuild.parser.groovy.WorkflowDelegate
Groovy delegate that captures the Workflow configuration from the project build file. The methods on this class
capture the configuration from the DSL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProcess delegate class that is used to configureProcessinstances for theFetchWorkflowandPublishWorkflowof theWorkflow. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringfinal org.savantbuild.output.Outputfinal org.savantbuild.dep.workflow.Workflow -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowDelegate(org.savantbuild.output.Output output, org.savantbuild.dep.workflow.Workflow workflow) -
Method Summary
Modifier and TypeMethodDescriptionvoidfetch(groovy.lang.Closure<?> closure) Configures the fetch workflow processes.voidpublish(groovy.lang.Closure<?> closure) Configures the publish workflow processes.semanticVersions(groovy.lang.Closure<?> closure) Configures the project's semantic version mappings.voidstandard()Configures the standard project workflow as follows:
-
Field Details
-
defaultMavenDir
-
output
public final org.savantbuild.output.Output output -
workflow
public final org.savantbuild.dep.workflow.Workflow workflow
-
-
Constructor Details
-
WorkflowDelegate
public WorkflowDelegate(org.savantbuild.output.Output output, org.savantbuild.dep.workflow.Workflow workflow)
-
-
Method Details
-
fetch
Configures the fetch workflow processes.- Parameters:
closure- The closure. This closure uses the delegate classWorkflowDelegate.ProcessDelegate.
-
publish
Configures the publish workflow processes.- Parameters:
closure- The closure. This closure uses the delegate classWorkflowDelegate.ProcessDelegate.
-
semanticVersions
public Map<String,org.savantbuild.domain.Version> semanticVersions(@DelegatesTo(SemanticVersionDelegate.class) groovy.lang.Closure<?> closure) Configures the project's semantic version mappings. This method is called with a closure that contains the mappings. It should look like:
semanticVersions { mapping(id: "org.badver:badver:1.0.0.Final", version: "1.0.0") }- Parameters:
closure- The closure that is called to set up the semantic version mappings. This closure uses the delegate classSemanticVersionDelegate.- Returns:
- The mappings.
-
standard
public void standard()Configures the standard project workflow as follows:
fetch { cache() url(url: "https://repository.savantbuild.org") maven(url: "https://repo1.maven.org/maven2") } publish { cache() }
-