blob: 7db1b860b167b6e36d32a7bea6b00aff834db52b [file] [log] [blame]
---
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
title: "Cayenne Guide 5.0 ยท Including Cayenne in a Project"
description: "Cayenne Guide 5.0, Including Cayenne in a Project"
cayenneVersion: "5.0"
cayenneNoToc: true
---
<div class="sect2">
<h3 id="including-cayenne-in-project"><a class="anchor" href="#including-cayenne-in-project"></a>2.1. Including Cayenne in a Project</h3>
<div class="sect3">
<h4 id="maven"><a class="anchor" href="#maven"></a>2.1.1. Maven</h4>
<div class="paragraph">
<p>To add Cayenne to your Maven project, include <code>cayenne</code> in your POM:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-xml xml" data-lang="xml">&lt;dependency&gt;
&lt;groupId&gt;org.apache.cayenne&lt;/groupId&gt;
&lt;artifactId&gt;cayenne&lt;/artifactId&gt;
&lt;version&gt;5.0-SNAPSHOT&lt;/version&gt;
&lt;/dependency&gt;</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="gradle"><a class="anchor" href="#gradle"></a>2.1.2. Gradle</h4>
<div class="paragraph">
<p>To add Cayenne to your Gradle project, include <code>cayenne</code> module:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-Groovy Groovy" data-lang="Groovy">compile 'org.apache.cayenne:cayenne:5.0-SNAPSHOT'</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="ant-etc"><a class="anchor" href="#ant-etc"></a>2.1.3. Ant, etc.</h4>
<div class="paragraph">
<p>If your environment requires manual dependency management (like Ant), check <code>lib</code> and <code>lib/third-party</code> folders of Cayenne distribution. It contains all Cayenne jars as well as the minimal set of third-party libraries to get you started.</p>
</div>
</div>
</div>