<%@ page isELIgnored="true" %> <%@ taglib uri="cms" prefix="cms" %> Defining a Basic Dependency

Defining a Basic Dependency

Dependencies are configured on originating (build) workflows so that the artifacts of the child project can be retrieved at run time. Codestation, AnthillPro's dependency-management system, enables you to set how dependency builds occur. For example, a dependency can be configured so that the parent project checks its dependencies and builds them at run time. This is called a pull build. Or, a build for the child project can kick off a build of the parent. This is called a push build.

It is recommended to review the Configure Dependencies section for more -- especially when configuring the conflict strategy.

To successfully configure a dependency relationship requires configuration on both the parent and child projects:

  1. Artifact Set configuration on the child project. AnthillPro stores the build artifacts of the child project in Codestation as an Artifact Sets.

    Before you can complete a dependency relationship, AnthillPro will need to capture the child project's build artifacts and then deliver those artifacts to the embedded dependency-management system (called Codestation). Once the artifacts are in Codestation, AnthillPro will be able to keep track of when and where they are used as dependencies.

    Since AnthillPro does not know what artifacts you want captured, you will need to label them so they can be grouped and stored together. This is done by defining an artifact set on your build process. You can think of the artifact set as a grouping of build artifacts (files) that allows for fine-grained consumption of the artifacts. Once the artifacts are labeled and grouped into an artifact set, you will need to manually add a Deliver Artifact step to your build job.

    See Capture and Deliver Build Artifacts (Child Project) for more.

  2. Dependency configuration on the parent project. Once the child project's build artifacts are captured and delivered to Codestation, the dependency is configured on the parent project's originating workflow. You will also need to add a Resolve Dependency Artifacts step to the parent project's build job.

    Once the child project's artifacts are in Codestation, you need to configure the dependency relationship on the parent project's originating (build) workflow, and add a resolve dependency step to the build job. When configuring dependencies, you will also need to tell AnthillPro how you want your dependencies handled.

    See Configure Dependency (Parent) for more.