From 6e441ee6e71ff23c53ca45fb74f73a08d7de2d3a Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 25 Apr 2022 20:17:19 +0200 Subject: [PATCH] try to fix build (#8710) --- CHANGELOG.md | 6 +++++- build.gradle | 1 - src/main/java/module-info.java | 4 +--- .../org/jabref/model/pdf/search/SearchFieldConstants.java | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 894a258a339..e4d92b3ca60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,11 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve ### Changed -- We upgraded to Lucene 9.1 for the fulltext search. Thus, the now created search index cannot be read from older versions of JabRef anylonger and would need to be recreated if you switch back to an older version [#8362](https://github.com/JabRef/jabref/pull/8362) +- We upgraded to Lucene 9.1 for the fulltext search. + Thus, the now created search index cannot be read from older versions of JabRef anylonger. + ⚠️ JabRef will recreate the index in a new folder for new files and this will take a long time for a huge library. + Moreover, switching back and forth JabRef versions and meanwhile adding PDFs also requires rebuilding the index now and then. + [#8362](https://github.com/JabRef/jabref/pull/8362) - We changed the list of CSL styles to those that support formatting bibliographies [#8421](https://github.com/JabRef/jabref/issues/8421) [citeproc-java#116](https://github.com/michel-kraemer/citeproc-java/issues/116) - The CSL preview styles now also support displaying data from cross references entries that are linked via the `crossref` field [#7378](https://github.com/JabRef/jabref/issues/7378) - We made the Search button in Web Search wider. We also skewed the panel titles to the left [#8397](https://github.com/JabRef/jabref/issues/8397) diff --git a/build.gradle b/build.gradle index 85c145ded41..4ce7c128f63 100644 --- a/build.gradle +++ b/build.gradle @@ -119,7 +119,6 @@ dependencies { implementation 'org.apache.lucene:lucene-queries:9.1.0' implementation 'org.apache.lucene:lucene-analysis-common:9.1.0' implementation 'org.apache.lucene:lucene-highlighter:9.1.0' - implementation 'org.apache.lucene:lucene-backward-codecs:9.1.0' implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.9.0' implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 86fa94d53b7..ca408a86348 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -103,9 +103,8 @@ // fulltext search requires org.apache.lucene.core; + // In case the version is updated, please also adapt SearchFieldConstants#VERSION to the newly used version uses org.apache.lucene.codecs.lucene91.Lucene91Codec; - requires org.apache.lucene.backward_codecs; - uses org.apache.lucene.backward_codecs.lucene87.Lucene87Codec; requires org.apache.lucene.queryparser; uses org.apache.lucene.queryparser.classic.MultiFieldQueryParser; @@ -120,5 +119,4 @@ requires org.eclipse.jgit; uses org.eclipse.jgit.transport.SshSessionFactory; uses org.eclipse.jgit.lib.GpgSigner; - } diff --git a/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java b/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java index 5f114d50faa..82da59322c4 100644 --- a/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java +++ b/src/main/java/org/jabref/model/pdf/search/SearchFieldConstants.java @@ -10,5 +10,5 @@ public class SearchFieldConstants { public static final String[] PDF_FIELDS = new String[]{PATH, CONTENT, PAGE_NUMBER, MODIFIED, ANNOTATIONS}; - public static final String VERSION = "0.5a"; + public static final String VERSION = "lucene91"; }