Skip to content

Commit

Permalink
Update to libre office 7.0.3 (#7150)
Browse files Browse the repository at this point in the history
remove custom lib merging
  • Loading branch information
Siedlerchr committed Dec 2, 2020
1 parent 706865f commit f22968e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
20 changes: 2 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ repositories {
}

configurations {
libreoffice
antlr3
antlr4
// TODO: Remove the following workaround for split error messages such as
Expand Down Expand Up @@ -117,14 +116,8 @@ dependencies {

implementation 'commons-cli:commons-cli:1.4'

// For Java 9+ compatibility, we include a bundled version of the libreoffice libraries
// See https://bugs.documentfoundation.org/show_bug.cgi?id=117331#c8 for background information
// Use the task bundleLibreOffice to update the bundled jar
// DO NOT CHANGE THE libreoffice PREFIX
libreoffice 'org.libreoffice:juh:6.4.3'
libreoffice 'org.libreoffice:jurt:6.4.3'
libreoffice 'org.libreoffice:ridl:6.4.3'
libreoffice 'org.libreoffice:unoil:6.4.3'
implementation 'org.libreoffice:libreoffice:7.0.3'
implementation 'org.libreoffice:unoloader:7.0.3'

implementation 'io.github.java-diff-utils:java-diff-utils:4.9'
implementation 'info.debatty:java-string-similarity:2.0.0'
Expand Down Expand Up @@ -767,13 +760,4 @@ task downloadDependencies {
}
}

task bundleLibreOffice(type: Jar) {
from configurations.libreoffice.collect { zipTree it }

manifest {
attributes 'Automatic-Module-Name': 'org.jabref.thirdparty.libreoffice'
}

destinationDir = file('lib')
archiveName = 'libreoffice.jar'
}
Binary file removed lib/libreoffice.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
requires applicationinsights.core;

// Libre Office
requires org.jabref.thirdparty.libreoffice;
requires org.libreoffice.uno;

// Other modules
requires commons.logging;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/openoffice/OOBibBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ public BibDatabase generateDatabase(List<BibDatabase> databases)
throws NoSuchElementException, WrappedTargetException {
BibDatabase resultDatabase = new BibDatabase();
List<String> cited = findCitedKeys();
List<BibEntry> entriesToInsert = new ArrayList<BibEntry>();
List<BibEntry> entriesToInsert = new ArrayList<>();

// For each cited key
for (String key : cited) {
Expand Down

0 comments on commit f22968e

Please sign in to comment.