lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [52/52] [abbrv] lucene-solr:jira/gradle: Adding more dependency for solrj to make the test pass
Date Tue, 23 Oct 2018 00:06:13 GMT
Adding more dependency for solrj to make the test pass


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

Branch: refs/heads/jira/gradle
Commit: c9cb4fe961f7472cd9081839fd3510f6d166a0d2
Parents: 0ae21ad
Author: Cao Manh Dat <datcm@apache.org>
Authored: Tue Oct 23 07:03:43 2018 +0700
Committer: Cao Manh Dat <datcm@apache.org>
Committed: Tue Oct 23 07:03:43 2018 +0700

----------------------------------------------------------------------
 build.gradle                             | 12 +++++----
 settings.gradle                          |  3 ++-
 solr/core/build.gradle                   | 10 +++----
 solr/example/example-DIH/build.gradle    |  6 +++++
 solr/solrj/build.gradle                  |  1 +
 solr/solrj/src/test/resources/log4j2.xml | 39 +++++++++++++++++++++++++++
 6 files changed, 58 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 7c5c062..df21ce8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -22,13 +22,15 @@ allprojects {
         }
         jcenter() 
     }
-    configurations {
-	    all {
-	        // exclude group: 'com.google.guava', module: 'guava'
-	    }
-	}
 }
 
+subprojects {
+	plugins.withType(JavaPlugin) {
+		test {
+			systemProperty 'java.security.egd', 'file:/dev/./urandom'
+		}
+	}
+}
 
 // These versions are defined here because they represent
 // a dependency version which should match across multiple

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 5016b7a..56554a7 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -44,4 +44,5 @@ include 'lucene:test-framework'
 include 'solr:core'
 include 'solr:server'
 include 'solr:solrj'
-include 'solr:test-framework'
\ No newline at end of file
+include 'solr:test-framework'
+include 'solr:example:example-DIH'
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/solr/core/build.gradle
----------------------------------------------------------------------
diff --git a/solr/core/build.gradle b/solr/core/build.gradle
index 8be91c3..e8cc58e 100644
--- a/solr/core/build.gradle
+++ b/solr/core/build.gradle
@@ -1,16 +1,12 @@
 apply plugin: 'java'
 
-
-task printClasspath {
-    doLast {
-        configurations.testRuntime.each { println it }
-    }
-}
-
 dependencies {
 	compile project(':solr:server')
 	compile project(':solr:solrj')
 	compile project(':lucene:analysis:common')
+	compile project(':lucene:analysis:phonetic')
+	compile project(':lucene:analysis:kuromoji')
+	compile project(':lucene:analysis:nori')
 	compile project(':lucene:suggest')
 	compile project(':lucene:queries')
 	compile project(':lucene:highlighter')

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/solr/example/example-DIH/build.gradle
----------------------------------------------------------------------
diff --git a/solr/example/example-DIH/build.gradle b/solr/example/example-DIH/build.gradle
new file mode 100644
index 0000000..962acf8
--- /dev/null
+++ b/solr/example/example-DIH/build.gradle
@@ -0,0 +1,6 @@
+apply plugin: 'java'
+
+dependencies {
+	compile library.hsqldb
+	compile library.derby
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/solr/solrj/build.gradle
----------------------------------------------------------------------
diff --git a/solr/solrj/build.gradle b/solr/solrj/build.gradle
index 86c1f59..5932045 100644
--- a/solr/solrj/build.gradle
+++ b/solr/solrj/build.gradle
@@ -18,4 +18,5 @@ dependencies {
 	testCompile library.byte_buddy
 	testCompile library.objenesis
 	testCompile project(':solr:test-framework')
+	testCompile project(':solr:example:example-DIH')
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c9cb4fe9/solr/solrj/src/test/resources/log4j2.xml
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/resources/log4j2.xml b/solr/solrj/src/test/resources/log4j2.xml
new file mode 100644
index 0000000..7d0ebf7
--- /dev/null
+++ b/solr/solrj/src/test/resources/log4j2.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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
+
+      http://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.
+  -->
+
+<Configuration>
+  <Appenders>
+    <Console name="STDERR" target="SYSTEM_ERR">
+      <PatternLayout>
+        <Pattern>
+          %-4r %-5p (%t) [%X{node_name} %X{collection} %X{shard} %X{replica} %X{core}] %c{1.}
%m%n
+        </Pattern>
+      </PatternLayout>
+    </Console>
+  </Appenders>
+  <Loggers>
+    <Logger name="org.apache.zookeeper" level="WARN"/>
+    <Logger name="org.apache.hadoop" level="WARN"/>
+    <Logger name="org.apache.directory" level="WARN"/>
+    <Logger name="org.apache.solr.hadoop" level="INFO"/>
+
+    <Root level="INFO">
+      <AppenderRef ref="STDERR"/>
+    </Root>
+  </Loggers>
+</Configuration>


Mime
View raw message