Add log4j as optional dependency to gremlin-driver

This allows the local profiling build assembly to configure slf4j properly. 
This change requires no change to LICENSE/NOTICE as there is no explicit 
packaging to gremlin-driver. CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/fa9f898c
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/fa9f898c
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/fa9f898c

Branch: refs/heads/TINKERPOP-1529-variant2
Commit: fa9f898c234bdcced1cacc27ba96c44a6a780c0f
Parents: 7c9b47f
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Sun Nov 13 06:58:43 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Sun Nov 13 06:58:43 2016 -0500

----------------------------------------------------------------------
 gremlin-driver/pom.xml | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/fa9f898c/gremlin-driver/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-driver/pom.xml b/gremlin-driver/pom.xml
index 3996009..e55d4a2 100644
--- a/gremlin-driver/pom.xml
+++ b/gremlin-driver/pom.xml
@@ -61,6 +61,16 @@ limitations under the License.
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <optional>true</optional>
+        </dependency>
         <!-- TEST -->
         <dependency>
             <groupId>junit</groupId>
@@ -68,11 +78,6 @@ limitations under the License.
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-log4j12</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.tinkerpop</groupId>
             <artifactId>tinkergraph-gremlin</artifactId>
             <version>${project.version}</version>

Reply via email to