Skip to content

Commit

Permalink
Improved: Update build.gradle to the latest dependencies
Browse files Browse the repository at this point in the history
(OFBIZ-11151)

Like for OFBIZ-10922 some updates were not possible. Please refer to the Jira 
for more information

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1864973 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Aug 12, 2019
1 parent 3747e3d commit 4f19b76
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
*/

dependencies {
pluginLibsCompile 'org.apache.tomcat.embed:tomcat-embed-websocket:9.0.21'
pluginLibsCompile 'org.apache.tomcat.embed:tomcat-embed-websocket:9.0.22'
}
6 changes: 3 additions & 3 deletions lucene/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dependencies {
// Remember to change the version number in SearchWorker class when upgrading.
// Also Solr et Lucene should use the same version, luceneMatchVersion should be updated in solrconfig.xml
pluginLibsCompile 'org.apache.lucene:lucene-core:7.5.0'
pluginLibsCompile 'org.apache.lucene:lucene-queryparser:7.5.0'
pluginLibsCompile 'org.apache.lucene:lucene-analyzers-common:7.5.0'
pluginLibsCompile 'org.apache.lucene:lucene-core:8.2.0'
pluginLibsCompile 'org.apache.lucene:lucene-queryparser:8.2.0'
pluginLibsCompile 'org.apache.lucene:lucene-analyzers-common:8.2.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public final class SearchWorker {

public static final String module = SearchWorker.class.getName();

private static final Version LUCENE_VERSION = Version.LUCENE_7_5_0;
private static final Version LUCENE_VERSION = Version.LUCENE_8_2_0;

private SearchWorker() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Licensed to the Apache Software Foundation (ASF) under one
package org.apache.ofbiz.content.test;

import java.io.File;
import java.lang.Object;
import java.lang.String;
import java.util.HashMap;
import java.util.Map;

Expand All @@ -36,12 +34,12 @@ Licensed to the Apache Software Foundation (ASF) under one
import org.apache.lucene.search.TopScoreDocCollector;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.ofbiz.base.util.Debug;
import org.apache.ofbiz.content.search.SearchWorker;
import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.util.EntityQuery;
import org.apache.ofbiz.service.ServiceUtil;
import org.apache.ofbiz.service.testtools.OFBizTestCase;
import org.apache.ofbiz.base.util.Debug;

public class LuceneTests extends OFBizTestCase {

Expand Down Expand Up @@ -99,7 +97,7 @@ public void testSearchTermHand() throws Exception {
combQueryBuilder.add(query, BooleanClause.Occur.MUST);
BooleanQuery combQuery = combQueryBuilder.build();

TopScoreDocCollector collector = TopScoreDocCollector.create(10);
TopScoreDocCollector collector = TopScoreDocCollector.create(10, 10);
searcher.search(combQuery, collector);

assertEquals("Only 1 result expected from the testdata", 1, collector.getTotalHits());
Expand Down
8 changes: 4 additions & 4 deletions pricat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
dependencies {
pluginLibsCompile 'org.safehaus.jug:jug:2.0.0:asl'
pluginLibsCompile 'org.apache.poi:poi-ooxml:3.17'
pluginLibsCompile 'org.apache.poi:poi-ooxml-schemas:3.17'
pluginLibsCompile 'org.apache.poi:poi-excelant:3.17'
pluginLibsCompile 'org.apache.poi:poi-scratchpad:3.17'
pluginLibsCompile 'org.apache.poi:poi-ooxml:4.1.0'
pluginLibsCompile 'org.apache.poi:poi-ooxml-schemas:4.1.0'
pluginLibsCompile 'org.apache.poi:poi-excelant:4.1.0'
pluginLibsCompile 'org.apache.poi:poi-scratchpad:4.1.0'
}
4 changes: 3 additions & 1 deletion solr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
* under the License.
*/
dependencies {
pluginLibsCompile 'org.apache.solr:solr-core:7.5.0' // Remember to change the version number in SearchWorker class when upgrading. Also Solr et Lucene should use the same version
// Remember to change the version number in SearchWorker class when upgrading.
// Also Solr et Lucene should use the same version, luceneMatchVersion should be updated in solrconfig.xml
pluginLibsCompile 'org.apache.solr:solr-core:8.2.0'
pluginLibsCompile 'com.google.guava:guava:20.0'
}

Expand Down
2 changes: 1 addition & 1 deletion solr/home/solrdefault/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
-->
<luceneMatchVersion>7.5.0</luceneMatchVersion>
<luceneMatchVersion>8.2.0</luceneMatchVersion>


<!-- <lib/> directives can be used to instruct Solr to load any Jars
Expand Down

0 comments on commit 4f19b76

Please sign in to comment.