diff --git a/build.gradle b/build.gradle index 3caf82829a5..be54dedcd82 100644 --- a/build.gradle +++ b/build.gradle @@ -175,6 +175,8 @@ dependencies { implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT' annotationProcessor group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT' + // SNAPSHOT is required because of plain-java support + // See https://github.com/michel-kraemer/citeproc-java/issues/92 for details implementation 'de.undercouch:citeproc-java:3.0.0-SNAPSHOT' implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.1' diff --git a/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java b/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java index abc5dd93c21..5edac0f1f6b 100644 --- a/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java +++ b/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java @@ -68,7 +68,7 @@ private void initialize(String newStyle, CitationStyleOutputFormat newFormat) th if ((cslInstance == null) || !Objects.equals(newStyle, style)) { // lang and forceLang are set to the default values of other CSL constructors cslInstance = new CSL(dataProvider, new JabRefLocaleProvider(), - new DefaultAbbreviationProvider(), null, newStyle, "en-US"); + new DefaultAbbreviationProvider(), newStyle, "en-US"); style = newStyle; }