This project has retired. For details please refer to its Attic page.
Depend on Zest™ in your build
Zest™
Introduction
Tutorials
Javadoc
Samples
Core
Libraries
Extensions
Tools
Glossary 

Depend on Zest™ in your build

Note

Some of the Libraries and Extensions depend on artifacts that are not deployed in central, you’ll need to add other repositories to your build scripts accordingly.

Release artifacts, including sources and javadoc, are deployed to Maven Central:

http://repo1.maven.org/maven2/ (US)

http://uk.maven.org/maven2/ (Europe)

Snapshot artifacts, including sources and javadoc, are built against the develop branch and deployed weekly to the Apache SNAPSHOTS repository:

http://repository.apache.org/snapshots/

Manually

If you don’t rely on your build scripts dependency resolution mechanism you should download the SDK distribution.

Using Maven

You simply declare dependencies on Zest™ artifacts:

<dependencies>
    <dependency>
        <groupId>org.qi4j.core</groupId>
        <artifactId>org.qi4j.core.bootstrap</artifactId>
        <version>ZEST_VERSION</version>
    </dependency>
    <dependency>
        <groupId>org.qi4j.core</groupId>
        <artifactId>org.qi4j.core.runtime</artifactId>
        <version>ZEST_VERSION</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.qi4j.core</groupId>
        <artifactId>org.qi4j.core.testsupport</artifactId>
        <version>ZEST_VERSION</version>
        <scope>test</scope>
    </dependency>
</dependencies>

Where ZEST_VERSION is the Zest™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

<repositories>
    <repository>
        <id>apache-snapshots</id>
        <url>https://repository.apache.org/snapshots/</url>
        <releases><enabled>false</enabled></releases>
        <snapshots><enabled>true</enabled></snapshots>
    </repository>
</repositories>

Using Gradle

You simply declare dependencies on Zest™ artifacts:

dependencies {
    compile     "org.qi4j.core:org.qi4j.core.bootstrap:ZEST_VERSION"
    runtime     "org.qi4j.core:org.qi4j.core.runtime:ZEST_VERSION"
    testCompile "org.qi4j.core:org.qi4j.core.testsupport:ZEST_VERSION"
}

Where ZEST_VERSION is the Zest™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

repositories {
    maven { name 'apache-snapshots'; url "https://repository.apache.org/snapshots/" }
}

Using Buildr

You simply declare dependencies on Zest™ artifacts:

compile.with 'org.qi4j.core:org.qi4j.core.bootstrap:ZEST_VERSION'
package(:war).with :libs => 'org.qi4j.core:org.qi4j.core.runtime:ZEST_VERSION'
test.with 'org.qi4j.core:org.qi4j.core.testsupport:ZEST_VERSION'

Where ZEST_VERSION is the Zest™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

repositories.remote << 'https://repository.apache.org/snapshots/'

Using SBT

You simply declare dependencies on Zest™ artifacts:

libraryDependencies += \
    "org.qi4j.core" % "org.qi4j.core.bootstrap" % "ZEST_VERSION" \
    withSources() withJavadoc()
libraryDependencies += \
    "org.qi4j.core" % "org.qi4j.core.runtime" % "ZEST_VERSION" % "runtime" \
    withSources() withJavadoc()
libraryDependencies += \
    "org.qi4j.core" % "org.qi4j.core.testsupport" % "ZEST_VERSION" % "test" \
    withSources() withJavadoc()

Where ZEST_VERSION is the Zest™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

resolvers += "apache-snapshots" at "https://repository.apache.org/snapshots/"

Using Ivy

You simply declare dependencies on Zest™ artifacts:

<ivy-module>
    <dependencies>
        <dependency org="org.qi4j.core" name="org.qi4j.core.bootstrap"
                    rev="ZEST_VERSION"  conf="default" />
        <dependency org="org.qi4j.core" name="org.qi4j.core.runtime"
                    rev="ZEST_VERSION"  conf="runtime" />
        <dependency org="org.qi4j.core" name="org.qi4j.core.testsupport"
                    rev="ZEST_VERSION"  conf="test" />
    </dependencies>
</ivy-module>

Where ZEST_VERSION is the Zest™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository in a ivysettings.xml file:

<ivysettings>
    <settings defaultResolver="chain"/>
    <resolvers>
        <chain name="chain">
            <ibiblio name="apache-snapshots" m2compatible="true"
                     root="https://repository.apache.org/snapshots/"/>
        </chain>
    </resolvers>
</ivysettings>