Chapter 7. Creating Dependency Sets

Dependency sets are the key to reusing build configurations amongst projects. The easiest way to create one is using an archetype. For example, within an empty directory type:

$ quokka archetype -Darchetype=quokka.archetype.depset

This will create a new dependency set project for you with the following structure:

build-quokka.properties
build-quokka.xml
src/
    main/
        resources/
            depset.xml
            resources/

Edit depset.xml to include any dependencies, plugins, paths or other quokka configuration. Add any build resources under the resources/ directory.

Once done, type quokka to build your dependency set and include it in the repository. You can then include it in other projects or dependency sets as a nested dependency set.

A standard Ant project may also be included in a dependency set. It will be automatically imported into the project when the dependency set is included. To do this, create a file called import.xml along side the depset.xml file.