Skip to content

Commit e692f4b

Browse files
committed
Merge remote-tracking branch 'upstream/master' into addInfoPlist
# By Tobias Diez (10) and others # Via dimitra-karadima (5) and others * upstream/master: (62 commits) Backward compatibility for 4.3.1 (#6296) Fix Export to clipboard Dialog icon (#6345) Refactor EntryEditorPreferences (#6245) Update label names Squashed 'src/main/resources/csl-locales/' changes from d0ee4d13c9..79845b087b Squashed 'src/main/resources/csl-styles/' changes from c1793d2..143464e Cite work by @ayaankazerouni Improve performance for loading files (#6332) Add ADR von JUnit vs. AssertJ (#6335) 'Name' textfield on focus instead of 'OK' button when user clicks on 'Add subgroup' option (#6330) Bump jurt from 6.3.2 to 6.4.3 (#6325) Bump unoil from 6.3.2 to 6.4.3 (#6320) Bump ridl from 6.3.2 to 6.4.3 (#6326) Bump classgraph from 4.8.69 to 4.8.71 (#6322) Bump flexmark from 0.61.6 to 0.61.16 (#6318) Bump richtextfx from 0.10.4 to 0.10.5 (#6319) Bump guava from 28.2-jre to 29.0-jre (#6323) Bump flexmark-ext-gfm-tasklist from 0.61.6 to 0.61.16 (#6327) Bump org.beryx.jlink from 2.17.5 to 2.17.7 (#6324) Improve performance massively by fixing a stupid binding mistake (#6316) ... # Conflicts: # build.gradle
2 parents 1a01b70 + d7a57b8 commit e692f4b

File tree

432 files changed

+9379
-3015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

432 files changed

+9379
-3015
lines changed

.github/outdatedDependencies.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
title: Outdated dependencies
3-
labels: code-quality, dependencies
3+
labels: t: dependencies
44
---
55
[There are outdated dependencies!](https://github.com/JabRef/jabref/actions?query=is%3Afailure+workflow%3A%22Check+dependencies%22)

.github/workflows/deployment.yml

+1-22
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,10 @@ jobs:
5454
uses: actions/setup-java@v1
5555
with:
5656
java-version: 14
57-
- uses: actions/cache@v1
58-
name: Restore gradle cache
59-
with:
60-
path: ~/.gradle/caches
61-
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
62-
# in case there is no cache for the current OS, fall back to any other OS
63-
restore-keys: |
64-
${{ runner.os }}-gradle-cache-
65-
Linux-gradle-cache-${{ hashFiles('**/*.gradle') }}
66-
Windows-gradle-cache-${{ hashFiles('**/*.gradle') }}
67-
macOS-gradle-cache-${{ hashFiles('**/*.gradle') }}
68-
- uses: actions/cache@v1
69-
name: Cache gradle wrapper
70-
with:
71-
path: ~/.gradle/wrapper
72-
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
73-
# in case there is no cache for the current OS, fall back to any other OS
74-
restore-keys: |
75-
Linux-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
76-
Windows-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
77-
macOS-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
7857
- name: Build runtime image
7958
run: ./gradlew -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jlinkZip
8059
- name: Build installer
81-
run: ./gradlew -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jpackage
60+
run: ./gradlew -i -PprojVersion="${{ steps.gitversion.outputs.AssemblySemVer }}" -PprojVersionInfo="${{ steps.gitversion.outputs.InformationalVersion }}" jpackage
8261
shell: bash
8362
- name: Package application image
8463
run: ${{ matrix.archivePortable }}

.github/workflows/stale.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/stale@master
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: 'This issue will be closed in 7 days due to inactivity :zzz: Please provide the requested information if the problem persists.'
16+
stale-issue-label: 'status: stale'
17+
days-before-stale: 30
18+
only-labels: 'status: waiting-for-customer-feedback'

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
if: ${{ steps.checksecrets.outputs.secretspresent }}
206206
run: xvfb-run --auto-servernum ./gradlew jacocoTestReport && bash <(curl -s https://codecov.io/bash);
207207
env:
208-
CI: "false" # we pretend to run locally - even if tests fail on the CI, they count towards test coverage
208+
CI: "true"
209209
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
210210
DBMS: "postgresql"
211211
# This is https://github.com/marketplace/actions/gradle-wrapper-validation

.idea/runConfigurations/JabRef_Main.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
1616
- We added tooltips for most fields in the entry editor containing a short description. [#5847](https://github.com/JabRef/jabref/issues/5847)
1717
- We added support for basic markdown in custom formatted previews [#6194](https://github.com/JabRef/jabref/issues/6194)
1818
- We now show the number of items found and selected to import in the online search dialog. [#6248](https://github.com/JabRef/jabref/pull/6248)
19+
- We created a new install screen for macOS. [#5759](https://github.com/JabRef/jabref/issues/5759)
1920

2021
### Changed
2122

@@ -34,8 +35,12 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
3435
- We fixed an issue with inconsistent capitalization of file extensions when downloading files. [#6115](https://github.com/JabRef/jabref/issues/6115)
3536
- We fixed the display of language and encoding in the preferences dialog. [#6130](https://github.com/JabRef/jabref/pull/6130)
3637
- We fixed an issue where search full-text documents downloaded files with same name, overwriting existing files. [#6174](https://github.com/JabRef/jabref/pull/6174)
37-
- We fixe an issue where custom jstyles for Open/LibreOffice where not saved correctly. [#6170](https://github.com/JabRef/jabref/issues/6170)
38-
38+
- We fixed an issue when importing into current library an erroneous message "import cancelled" is displayed even though import is successful. [#6266](https://github.com/JabRef/jabref/issues/6266)
39+
- We fixed an issue where custom jstyles for Open/LibreOffice where not saved correctly. [#6170](https://github.com/JabRef/jabref/issues/6170)
40+
- We fixed an issue where the INSPIRE fetcher was no longer working [#6229](https://github.com/JabRef/jabref/issues/6229)
41+
- We fixed the display of icon both in the main table and linked file editor. [#6169](https://github.com/JabRef/jabref/issues/6169)
42+
- We fixed the paste entry command in the menu and toolbar, that did not do anything. [#6293](https://github.com/JabRef/jabref/issues/6293)
43+
- We fixed an issue where the windows installer did not create an entry in the start menu [bug report in the forum](https://discourse.jabref.org/t/error-while-fetching-from-doi/2018/3)
3944

4045
### Removed
4146

@@ -84,6 +89,9 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
8489
- We fixed an issue where citation styles except the default "Preview" could not be used. [#56220](https://github.com/JabRef/jabref/issues/5622)
8590
- We fixed an issue where a warning was displayed when the title content is made up of two sentences. [#5832](https://github.com/JabRef/jabref/issues/5832)
8691
- We fixed an issue where an exception was thrown when adding a save action without a selected formatter in the library properties [#6069](https://github.com/JabRef/jabref/issues/6069)
92+
- We fixed an issue where JabRef's icon was missing in the Export to clipboard Dialog. [#6286](https://github.com/JabRef/jabref/issues/6286)
93+
- We fixed an issue when an "Abstract field" was duplicating text, when importing from RIS file (Neurons) [#6065](https://github.com/JabRef/jabref/issues/6065)
94+
8795

8896
### Removed
8997

@@ -240,6 +248,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
240248
- We added a 'LaTeX citations' tab to the entry editor, to search for citations to the active entry in the LaTeX file directory. It can be disabled in the preferences dialog.
241249
- We added an option in preferences to allow for integers in field "edition" when running database in bibtex mode. [#4680](https://github.com/JabRef/jabref/issues/4680)
242250
- We added the ability to use negation in export filter layouts. [#5138](https://github.com/JabRef/jabref/pull/5138)
251+
- Focus on Name Area instead of 'OK' button whenever user presses 'Add subgroup'. [#6307](https://github.com/JabRef/jabref/issues/6307)
243252

244253
### Fixed
245254

JabRef-downgrade-regpatch.reg

356 Bytes
Binary file not shown.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ JabRef supports you in every step of your research work.
2323
- Easily retrieve and link full-text articles
2424
- Fetch complete bibliographic information based on ISBN, DOI, PubMed-ID and arXiv-ID
2525
- Extract metadata from PDFs
26-
- [JabFox Firefox Add-on](https://addons.mozilla.org/en-US/firefox/addon/jabfox/) lets you import new references directly from the browser with one click
26+
- Import new references directly from the browser with one click using the [official browser extension](https://github.com/JabRef/JabRef-Browser-Extension) for [Firefox](https://addons.mozilla.org/en-US/firefox/addon/jabref/?src=external-github), [Chrome](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh), [Edge](https://microsoftedge.microsoft.com/addons/detail/pgkajmkfgbehiomipedjhoddkejohfna) and [Vivaldi](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh)
2727

2828
### Organize
2929

@@ -88,7 +88,7 @@ We view pull requests as a collaborative process.
8888
Submit a pull request early to get feedback from the team on work in progress.
8989
We will discuss improvements with you and agree to merge them once the [developers](https://github.com/JabRef/jabref/blob/master/DEVELOPERS) approve.
9090

91-
If you want a step-by-step walk-through on how to set-up your workspace, please check [this guideline](https://devdocs.jabref.org/guidelines-for-setting-up-a-local-workspace/).
91+
If you want a step-by-step walk-through on how to set-up your workspace, please check [this guideline](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace).
9292

9393
To compile JabRef from source, you need a Java Development Kit 14 and `JAVA_HOME` pointing to this JDK.
9494
To run it, just execute `gradlew run`.

build.gradle

+16-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222
id 'com.github.ben-manes.versions' version '0.28.0'
2323
id 'org.javamodularity.moduleplugin' version '1.5.0'
2424
id 'org.openjfx.javafxplugin' version '0.0.8'
25-
id 'org.beryx.jlink' version '2.17.5'
25+
id 'org.beryx.jlink' version '2.17.7'
2626

2727
// nicer test outputs during running and completion
2828
id 'com.adarshr.test-logger' version '2.0.0'
@@ -128,10 +128,10 @@ dependencies {
128128
// See https://bugs.documentfoundation.org/show_bug.cgi?id=117331#c8 for background information
129129
// Use the task bundleLibreOffice to update the bundled jar
130130
// DO NOT CHANGE THE libreoffice PREFIX
131-
libreoffice 'org.libreoffice:juh:6.3.2'
132-
libreoffice 'org.libreoffice:jurt:6.3.2'
133-
libreoffice 'org.libreoffice:ridl:6.3.2'
134-
libreoffice 'org.libreoffice:unoil:6.3.2'
131+
libreoffice 'org.libreoffice:juh:6.4.3'
132+
libreoffice 'org.libreoffice:jurt:6.4.3'
133+
libreoffice 'org.libreoffice:ridl:6.4.3'
134+
libreoffice 'org.libreoffice:unoil:6.4.3'
135135

136136
implementation 'io.github.java-diff-utils:java-diff-utils:4.5'
137137
implementation 'info.debatty:java-string-similarity:1.2.1'
@@ -151,7 +151,7 @@ dependencies {
151151
exclude module: 'oraclepki'
152152
}
153153

154-
implementation ('com.google.guava:guava:28.2-jre') {
154+
implementation ('com.google.guava:guava:29.0-jre') {
155155
// TODO: Remove this as soon as https://github.com/google/guava/issues/2960 is fixed
156156
exclude module: "jsr305"
157157
}
@@ -165,7 +165,7 @@ dependencies {
165165
implementation 'de.saxsys:mvvmfx:1.8.0'
166166
implementation 'org.fxmisc.easybind:easybind:1.0.3'
167167
implementation 'org.fxmisc.flowless:flowless:0.6.1'
168-
implementation 'org.fxmisc.richtext:richtextfx:0.10.4'
168+
implementation 'org.fxmisc.richtext:richtextfx:0.10.5'
169169
implementation group: 'org.glassfish.hk2.external', name: 'jakarta.inject', version: '2.6.1'
170170
implementation 'com.jfoenix:jfoenix:9.0.9'
171171
implementation 'org.controlsfx:controlsfx:11.0.1'
@@ -196,11 +196,11 @@ dependencies {
196196
exclude module: "log4j-core"
197197
}
198198

199-
implementation 'com.vladsch.flexmark:flexmark:0.61.6'
199+
implementation 'com.vladsch.flexmark:flexmark:0.61.16'
200200
implementation 'com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:0.61.6'
201-
implementation 'com.vladsch.flexmark:flexmark-ext-gfm-tasklist:0.61.6'
201+
implementation 'com.vladsch.flexmark:flexmark-ext-gfm-tasklist:0.61.16'
202202

203-
testImplementation 'io.github.classgraph:classgraph:4.8.69'
203+
testImplementation 'io.github.classgraph:classgraph:4.8.71'
204204
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
205205
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.6.2'
206206
testImplementation 'org.junit.platform:junit-platform-launcher:1.6.2'
@@ -648,9 +648,11 @@ jlink {
648648
installerOptions = [
649649
'--vendor', 'JabRef',
650650
'--app-version', "${project.version}",
651+
'--verbose',
651652
'--win-upgrade-uuid', 'd636b4ee-6f10-451e-bf57-c89656780e36',
652653
'--win-dir-chooser',
653654
'--win-shortcut',
655+
'--win-menu',
654656
'--temp', "$buildDir/installer",
655657
'--resource-dir', "${projectDir}/buildres/windows",
656658
'--file-associations', "${projectDir}/buildres/windows/bibtexAssociations.properties"
@@ -662,6 +664,7 @@ jlink {
662664
'--icon', "${projectDir}/src/main/resources/icons/JabRef-icon-64.png",
663665
]
664666
installerOptions = [
667+
'--verbose',
665668
'--vendor', 'JabRef',
666669
'--app-version', "${project.version}",
667670
// '--temp', "$buildDir/installer",
@@ -681,10 +684,11 @@ jlink {
681684
'--resource-dir', "${projectDir}/buildres/mac"
682685
]
683686
installerOptions = [
687+
'--verbose',
684688
'--vendor', 'JabRef',
685689
'--app-version', "${project.version}",
686-
'--resource-dir', "${projectDir}/buildres/mac",
687-
'--file-associations', "${projectDir}/buildres/mac/bibtexAssociations.properties"
690+
'--file-associations', "${projectDir}/buildres/mac/bibtexAssociations.properties",
691+
'--resource-dir', "${projectDir}/buildres/mac"
688692
]
689693
}
690694
}

buildres/mac/JabRef-background.tiff

61.6 KB
Binary file not shown.

config/checkstyle/checkstyle.xml

+60-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
"http://www.checkstyle.org/dtds/configuration_1_3.dtd">
55

66
<module name="Checker">
7+
<property name="charset" value="UTF-8"/>
8+
79
<module name="Header">
810
<property name="header" value=""/>
911
</module>
1012

1113
<!-- BeforeExecutionFileFilters is required for sources that are based on java14 -->
1214
<module name="BeforeExecutionExclusionFileFilter">
13-
<property name="fileNamePattern" value="AuthorAndsReplacer.java|Ordinal.java" />
15+
<property name="fileNamePattern" value="AuthorAndsReplacer.java|Ordinal.java|EntryTypeView.java" />
1416
</module>
1517

1618
<module name="SuppressionFilter">
@@ -21,6 +23,9 @@
2123
<property name="fileNamePattern" value="module\-info\.java$"/>
2224
</module>
2325

26+
<module name="FileTabCharacter"/>
27+
<module name="NewlineAtEndOfFile"/>
28+
2429
<module name="TreeWalker">
2530
<!-- Checks for Javadoc comments: https://checkstyle.org/config_javadoc.html -->
2631
<module name="InvalidJavadocPosition"/>
@@ -42,16 +47,27 @@
4247
<property name="sortStaticImportsAlphabetically" value="true"/>
4348
</module>
4449

45-
<!-- Checks for common coding problems: https://checkstyle.org/config_coding.html -->
46-
<module name="DeclarationOrder"/>
47-
4850
<!-- Checks for whitespace: https://checkstyle.org/config_whitespace.html -->
51+
52+
<module name="EmptyForInitializerPad"/>
4953
<module name="EmptyLineSeparator">
54+
<!-- check all except variable declarations -->
5055
<property name="tokens"
51-
value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF"/>
56+
value="IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF"/>
5257
<property name="allowMultipleEmptyLines" value="false"/>
5358
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
5459
</module>
60+
<module name="GenericWhitespace"/>
61+
<module name="MethodParamPad"/>
62+
<module name="NoLineWrap"/>
63+
<module name="NoWhitespaceAfter"/>
64+
<module name="NoWhitespaceBefore"/>
65+
<module name="ParenPad"/>
66+
<module name="SeparatorWrap">
67+
<property name="tokens" value="COMMA, SEMI, ELLIPSIS, ARRAY_DECLARATOR, RBRACK, METHOD_REF"/>
68+
</module>
69+
<module name="SingleSpaceSeparator"/>
70+
<module name="WhitespaceAfter"/>
5571
<module name="WhitespaceAround">
5672
<!-- RCULRY causes issues if classes are nested within arrays, therefore not activated -->
5773
<property name="tokens"
@@ -70,5 +86,44 @@
7086

7187
<!-- Checks for blocks: https://checkstyle.org/config_blocks.html -->
7288
<module name="NeedBraces"/>
89+
90+
<module name="EmptyBlock">
91+
<property name="option" value="text"/>
92+
</module>
93+
94+
<!-- Disallows empty catch blocks (not even having a comment): https://checkstyle.sourceforge.io/config_blocks.html#EmptyCatchBlock -->
95+
<module name="EmptyCatchBlock"/>
96+
97+
<!--
98+
following rule enforces that there are no one line statements such as
99+
100+
public String getTabName() { return Localization.lang("XMP metadata"); }
101+
102+
Since it is too much effort to reformat all code, it is currently not enabled -->
103+
<!-- <module name="LeftCurly"/> -->
104+
105+
<module name="RightCurly"/>
106+
<!-- coding - https://checkstyle.sourceforge.io/config_coding.html -->
107+
108+
<module name="AvoidDoubleBraceInitialization"/>
109+
110+
<module name="CovariantEquals"/>
111+
112+
<!-- Checks for common coding problems: https://checkstyle.org/config_coding.html -->
113+
114+
<module name="DeclarationOrder"/>
115+
<module name="EmptyStatement"/>
116+
117+
<module name="EqualsHashCode"/>
118+
119+
<!-- force a space after // for comments -->
120+
<module name="TodoComment">
121+
<property name="id" value="commentStartWithSpace"/>
122+
<property name="format" value="^([^\s\/*])"/>
123+
<message key="todo.match" value="Comment text should start with space."/>
124+
</module>
125+
126+
<module name="MissingDeprecated"/>
127+
73128
</module>
74129
</module>

0 commit comments

Comments
 (0)