deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject svn commit: r1737581 - /deltaspike/site/trunk/content/documentation/cdiimp.html
Date Sun, 03 Apr 2016 12:14:33 GMT
Author: johndament
Date: Sun Apr  3 12:14:33 2016
New Revision: 1737581

URL: http://svn.apache.org/viewvc?rev=1737581&view=rev
Log:
Site checkin for project Apache DeltaSpike Documentation

Modified:
    deltaspike/site/trunk/content/documentation/cdiimp.html

Modified: deltaspike/site/trunk/content/documentation/cdiimp.html
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/documentation/cdiimp.html?rev=1737581&r1=1737580&r2=1737581&view=diff
==============================================================================
--- deltaspike/site/trunk/content/documentation/cdiimp.html (original)
+++ deltaspike/site/trunk/content/documentation/cdiimp.html Sun Apr  3 12:14:33 2016
@@ -285,7 +285,7 @@ table.CodeRay td.code>pre{padding:0}
 <p>CDI is part of Java EE6 and later so CDI implementations are included as standard
in Java EE6+ compliant environments. There is no additional CDI configuration needed besides
including the CDI-obligatory <code>beans.xml</code> file in your project.</p>
 </div>
 <div class="paragraph">
-<p>JBoss Weld is integrated in Java EE application servers including WildFly, JBoss
Enterprise Application Platform, GlassFish, and Oracle WebLogic.</p>
+<p>JBoss Weld is integrated in Java EE application servers including WildFly, JBoss
Enterprise Application Platform, GlassFish, IBM WebSphere Application Server (8.5.5 and up)
and Oracle WebLogic.</p>
 </div>
 <div class="paragraph">
 <p>Apache OpenWebBeans (OWB) is integrated in Java EE containers including Apache TomEE,
Apache Geronimo, IBM WebSphere Application Server, and SiwPas.</p>
@@ -310,44 +310,63 @@ table.CodeRay td.code>pre{padding:0}
 <p>DeltaSpike provides a dedicated Container Control module to enable applications
deployed in Java SE environments to boot a CDI container. The Container Control module consists
of the API component and components specific to the JBoss Weld, Apache OpenWebBeans and Apache
OpenEJB CDI containers. The DeltaSpike module provides a layer of abstraction from the specific
CDI containers, enabling you to write container-independent code in your project.</p>
 </div>
 <div class="paragraph">
-<p>Instructions are provided here for adding the required resources to both Maven-based
and Maven-independent projects and subsequently booting the CDI container from your project
source code.</p>
+<p>Instructions are provided here for adding the required resources to Maven based,
Gradle based and build independent projects and subsequently booting the CDI container from
your project source code.</p>
 </div>
 <div class="sect2">
 <h3 id="_declare_cdi_dependencies">Declare CDI Dependencies</h3>
 <div class="sect3">
-<h4 id="_dependencies_for_maven_based_projects">Dependencies for Maven-based Projects</h4>
+<h4 id="_dependencies_for_maven_and_gradle_based_projects">Dependencies for Maven and
Gradle based Projects</h4>
 <div class="paragraph">
 <p>For Maven-based projects, the Container Control module is available in Maven Central
together with the other DeltaSpike modules. You must configure your project to use the DeltaSpike
Container Control API and one of the CDI container-specific modules.</p>
 </div>
 <div class="olist arabic">
 <ol class="arabic">
 <li>
-<p>Open the project <code>pom.xml</code> file for editing</p>
+<p>Import the project as defined in <a href="/documentation/configure.html">Configure
DeltaSpike in Your Projects</a></p>
 </li>
 <li>
-<p>Add the DeltaSpike Container Control API to the list of dependencies</p>
+<p>Import the CDI Control API to your project.</p>
+<div class="olist loweralpha">
+<ol class="loweralpha" type="a">
+<li>
+<p>If you&#8217;re using Maven, add the following to <code>pom.xml</code></p>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;dependency&gt;</span>
     <span class="tag">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span
class="tag">&lt;/groupId&gt;</span>
     <span class="tag">&lt;artifactId&gt;</span>deltaspike-cdictrl-api<span
class="tag">&lt;/artifactId&gt;</span>
-    <span class="tag">&lt;version&gt;</span>${deltaspike.version}<span
class="tag">&lt;/version&gt;</span>
     <span class="tag">&lt;scope&gt;</span>compile<span class="tag">&lt;/scope&gt;</span>
 <span class="tag">&lt;/dependency&gt;</span></code></pre>
 </div>
 </div>
 </li>
 <li>
+<p>If you&#8217;re using Gradle, add the following to <code>build.gradle</code></p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code>dependencies {
+    compile 'org.apache.deltaspike.cdictrl:deltaspike-cdictrl-api'
+}</code></pre>
+</div>
+</div>
+</li>
+</ol>
+</div>
+</li>
+<li>
 <p>Add CDI container dependencies for one of the container options listed here</p>
+<div class="ulist">
+<ul>
+<li>
+<p>For JBoss Weld</p>
 <div class="olist loweralpha">
-<div class="title">For JBoss Weld</div>
 <ol class="loweralpha" type="a">
 <li>
 <p>Add the JBoss Weld version to the list of properties, replacing the version as desired</p>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;properties&gt;</span>
-    <span class="tag">&lt;weld.version&gt;</span>1.1.9.Final<span
class="tag">&lt;/weld.version&gt;</span>
+    <span class="tag">&lt;weld.version&gt;</span>2.3.3.Final<span
class="tag">&lt;/weld.version&gt;</span>
 <span class="tag">&lt;/properties&gt;</span></code></pre>
 </div>
 </div>
@@ -372,7 +391,6 @@ table.CodeRay td.code>pre{padding:0}
 <pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;dependency&gt;</span>
     <span class="tag">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span
class="tag">&lt;/groupId&gt;</span>
     <span class="tag">&lt;artifactId&gt;</span>deltaspike-cdictrl-weld<span
class="tag">&lt;/artifactId&gt;</span>
-    <span class="tag">&lt;version&gt;</span>${deltaspike.version}<span
class="tag">&lt;/version&gt;</span>
     <span class="tag">&lt;scope&gt;</span>runtime<span class="tag">&lt;/scope&gt;</span>
 <span class="tag">&lt;/dependency&gt;</span></code></pre>
 </div>
@@ -380,15 +398,36 @@ table.CodeRay td.code>pre{padding:0}
 </li>
 </ol>
 </div>
+</li>
+<li>
+<p>JBoss Weld with Gradle</p>
+<div class="olist loweralpha">
+<ol class="loweralpha" type="a">
+<li>
+<p>If you&#8217;re using Gradle, add the following to <code>build.gradle</code></p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code>def weldVersion = '2.3.3.Final'
+dependencies {
+    runtime 'org.jboss.weld.se:weld-se:'+weldVersion
+    runtime 'org.apache.deltaspike.cdictrl:deltaspike-cdictrl-weld'
+}</code></pre>
+</div>
+</div>
+</li>
+</ol>
+</div>
+</li>
+<li>
+<p>For Apache OpenWebBeans</p>
 <div class="olist loweralpha">
-<div class="title">For Apache OpenWebBeans</div>
 <ol class="loweralpha" type="a">
 <li>
 <p>Add the Apache OpenWebBeans version to the list of properties, replacing the version
as desired</p>
 <div class="listingblock">
 <div class="content">
 <pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;properties&gt;</span>
-    <span class="tag">&lt;owb.version&gt;</span>1.2.0<span class="tag">&lt;/owb.version&gt;</span>
+    <span class="tag">&lt;owb.version&gt;</span>1.6.3<span class="tag">&lt;/owb.version&gt;</span>
 <span class="tag">&lt;/properties&gt;</span></code></pre>
 </div>
 </div>
@@ -420,7 +459,6 @@ table.CodeRay td.code>pre{padding:0}
 <pre class="CodeRay highlight"><code data-lang="xml"><span class="tag">&lt;dependency&gt;</span>
     <span class="tag">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span
class="tag">&lt;/groupId&gt;</span>
     <span class="tag">&lt;artifactId&gt;</span>deltaspike-cdictrl-owb<span
class="tag">&lt;/artifactId&gt;</span>
-    <span class="tag">&lt;version&gt;</span>${deltaspike.version}<span
class="tag">&lt;/version&gt;</span>
     <span class="tag">&lt;scope&gt;</span>runtime<span class="tag">&lt;/scope&gt;</span>
 <span class="tag">&lt;/dependency&gt;</span></code></pre>
 </div>
@@ -430,23 +468,51 @@ table.CodeRay td.code>pre{padding:0}
 </div>
 </li>
 <li>
-<p>Save the <code>pom.xml</code> file changes</p>
+<p>Apache OpenWebBeans with Gradle</p>
+<div class="olist loweralpha">
+<ol class="loweralpha" type="a">
+<li>
+<p>If you&#8217;re using Gradle, add the following to <code>build.gradle</code></p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code>def owbVersion = '1.6.3'
+dependencies {
+    runtime 'org.apache.openwebbeans:openwebbeans-impl:'+owbVersion
+    compile 'org.apache.openwebbeans:openwebbeans-spi:'+owbVersion
+    runtime 'org.apache.deltaspike.cdictrl:deltaspike-cdictrl-owb'
+}</code></pre>
+</div>
+</div>
+</li>
+</ol>
+</div>
 </li>
 <li>
-<p>Download all required dependencies</p>
+<p>Save the <code>pom.xml</code> file changes</p>
 <div class="listingblock">
 <div class="content">
 <pre>mvn clean install</pre>
 </div>
 </div>
 </li>
+<li>
+<p>Save the <code>build.gradle</code> file changes</p>
+<div class="listingblock">
+<div class="content">
+<pre>gradle build</pre>
+</div>
+</div>
+</li>
+</ul>
+</div>
+</li>
 </ol>
 </div>
 </div>
 <div class="sect3">
-<h4 id="_dependencies_for_maven_independent_projects">Dependencies for Maven-independent
Projects</h4>
+<h4 id="_dependencies_for_build_independent_projects">Dependencies for build independent
projects</h4>
 <div class="paragraph">
-<p>For Maven-independent projects, the Container Control module is distributed together
with the other DeltaSpike modules in <code>distribution-fill-&lt;version&gt;.zip</code>.
You must add two of the files from the <code>cdictrl</code> directory to your
project, namely <code>deltaspike-cdictrl-api.jar</code> and the .jar file that
corresponds to the CDI container you have chosen. Add these files to the project <code>WEB-INF/lib</code>
or <code>EAR/lib</code> directory for .war and .ear projects respectively.</p>
+<p>For build independent projects, the Container Control module is distributed together
with the other DeltaSpike modules in <code>distribution-full-&lt;version&gt;.zip</code>.
You must add two of the files from the <code>cdictrl</code> directory to your
project, namely <code>deltaspike-cdictrl-api.jar</code> and the .jar file that
corresponds to the CDI container you have chosen. Add these files to the project <code>WEB-INF/lib</code>
or <code>EAR/lib</code> directory for .war and .ear projects respectively.</p>
 </div>
 </div>
 </div>
@@ -493,8 +559,8 @@ table.CodeRay td.code>pre{padding:0}
 <ul class="sectlevel2">
 <li><a href="#_declare_cdi_dependencies">Declare CDI Dependencies</a>
 <ul class="sectlevel3">
-<li><a href="#_dependencies_for_maven_based_projects">Dependencies for Maven-based
Projects</a></li>
-<li><a href="#_dependencies_for_maven_independent_projects">Dependencies for
Maven-independent Projects</a></li>
+<li><a href="#_dependencies_for_maven_and_gradle_based_projects">Dependencies
for Maven and Gradle based Projects</a></li>
+<li><a href="#_dependencies_for_build_independent_projects">Dependencies for
build independent projects</a></li>
 </ul>
 </li>
 </ul>



Mime
View raw message