Skip to content

Commit 02998c0

Browse files
committed
Merge remote-tracking branch 'upstream/main' into GSOC22-Three-Way-Merge
* upstream/main: (39 commits) New Crowdin updates (#9016) New Crowdin updates (#9013) try to gather more output from LO exception (#9002) Improve Automatic Field Editor Dialog (#8973) Update BST VM to Antlr4 (#8934) Support biblatex apa citation for legal entry types (#8966) Bump junit-jupiter from 5.8.2 to 5.9.0 (#9012) Bump lucene-core from 9.2.0 to 9.3.0 (#9009) Bump checkstyle from 10.3.1 to 10.3.2 (#9006) Bump appleboy/ssh-action from 0.1.4 to 0.1.5 (#9005) New translations JabRef_en.properties (Spanish) (#9003) Squashed 'buildres/csl/csl-locales/' changes from 55459cd79f..e637746677 Squashed 'buildres/csl/csl-styles/' changes from 3d3573c..c750b6e Autosave folder and checkbox is remembered (#9000) New Crowdin updates (#8999) Sync group view mode and main table (#8993) Bump unoloader from 7.3.4 to 7.3.5 (#8996) Bump libreoffice from 7.3.4 to 7.3.5 (#8997) Bump java-diff-utils from 4.11 to 4.12 (#8998) Fix external group metadata changes are not merged (#8994) ...
2 parents fffc5d1 + 0f463db commit 02998c0

File tree

205 files changed

+10003
-4532
lines changed

Some content is hidden

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

205 files changed

+10003
-4532
lines changed

.github/workflows/cleanup_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
echo "##[set-output name=branch;]$(echo ${{ github.event.pull_request.head.ref }})"
2828
- name: Delete folder on builds.jabref.org
2929
if: ${{ steps.checksecrets.outputs.secretspresent }}
30-
uses: appleboy/[email protected].4
30+
uses: appleboy/[email protected].5
3131
with:
3232
script: rm -rf /var/www/builds.jabref.org/www/${{ steps.extract_branch.outputs.branch }} || true
3333
host: build-upload.jabref.org

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
1616
- We added an extra option in the 'Find Unlinked Files' dialog view to ignore unnecessary files like Thumbs.db, DS_Store, etc. [koppor#373](https://github.com/koppor/jabref/issues/373)
1717
- JabRef now writes log files. Linux: `$home/.cache/jabref/logs/version`, Windows: `%APPDATA%\..\Local\harawata\jabref\version\logs`, Mac: `Users/.../Library/Logs/jabref/version`
1818
- We added an importer for Citavi backup files, support ".ctv5bak" and ".ctv6bak" file formats. [#8322](https://github.com/JabRef/jabref/issues/8322)
19+
- We added a feature to drag selected entries and drop them to other opened inactive library tabs [koppor521](https://github.com/koppor/jabref/issues/521).
20+
- We added support for the [biblatex-apa](https://github.com/plk/biblatex-apa) legal entry types `Legislation`, `Legadminmaterial`, `Jurisdiction`, `Constitution` and `Legal` [#8931](https://github.com/JabRef/jabref/issues/8931)
1921

2022
### Changed
2123

@@ -35,7 +37,9 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
3537
- When configured SSL certificates changed, JabRef warns the user to restart to apply the configuration.
3638
- We improved the appearances and logic of the "Manage field names & content" dialog, and renamed it to "Automatic field editor". [#6536](https://github.com/JabRef/jabref/issues/6536)
3739
- We improved the message explaining the options when modifying an automatic keyword group [#8911](https://github.com/JabRef/jabref/issues/8911)
38-
- We moved the preferences option "Warn about duplicates on import" option from the tab "File" to the tab "Import and Export". [kopper#570](https://github.com/koppor/jabref/issues/570)
40+
- We moved the preferences option "Warn about duplicates on import" option from the tab "File" to the tab "Import and Export". [koppor#570](https://github.com/koppor/jabref/issues/570)
41+
- When JabRef encounters `% Encoding: UTF-8` header, it is kept during writing (and not removed). [#8964](https://github.com/JabRef/jabref/pull/8964)
42+
- We replace characters which cannot be decoded using the specified encoding by a (probably another) valid character. This happens if JabRef detects the wrong charset (e.g., UTF-8 instead of Windows 1252). One can use the [Integrity Check](https://docs.jabref.org/finding-sorting-and-cleaning-entries/checkintegrity) to find those characters.
3943

4044
### Fixed
4145

@@ -54,6 +58,11 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
5458
- We fixed an issue where removing several groups deletes only one of them. [#8390](https://github.com/JabRef/jabref/issues/8390)
5559
- We fixed an issue where the Sidepane (groups, web search and open office) width is not remembered after restarting JabRef. [#8907](https://github.com/JabRef/jabref/issues/8907)
5660
- We fixed a bug where switching between themes will cause an error/exception. [#8939](https://github.com/JabRef/jabref/pull/8939)
61+
- We fixed a bug where files that were deleted in the source bibtex file were kept in the index. [#8962](https://github.com/JabRef/jabref/pull/8962)
62+
- We fixed "Error while sending to JabRef" when the browser extension interacts with JabRef. [JabRef-Browser-Extension#479](https://github.com/JabRef/JabRef-Browser-Extension/issues/479)
63+
- We fixed a bug where updating group view mode (intersection or union) requires re-selecting groups to take effect. [#6998](https://github.com/JabRef/jabref/issues/6998)
64+
- We fixed a bug that prevented external group metadata changes from being merged. [#8873](https://github.com/JabRef/jabref/issues/8873)
65+
- We fixed the shared database opening dialog to remember autosave folder and tick. [#7516](https://github.com/JabRef/jabref/issues/7516)
5766

5867
### Removed
5968

build.gradle

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ repositories {
8585
}
8686

8787
configurations {
88-
antlr3
8988
antlr4
9089
// TODO: Remove the following workaround for split error messages such as
9190
// error: module java.xml.bind reads package javax.annotation from both jsr305 and java.annotation
@@ -100,7 +99,7 @@ dependencyLocking {
10099
}
101100

102101
javafx {
103-
version = "18"
102+
version = "18.0.1"
104103
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.swing' ]
105104
}
106105

@@ -116,33 +115,29 @@ dependencies {
116115
implementation 'org.apache.pdfbox:fontbox:3.0.0-RC1'
117116
implementation 'org.apache.pdfbox:xmpbox:3.0.0-RC1'
118117

119-
implementation 'org.apache.lucene:lucene-core:9.2.0'
120-
implementation 'org.apache.lucene:lucene-queryparser:9.2.0'
121-
implementation 'org.apache.lucene:lucene-queries:9.2.0'
122-
implementation 'org.apache.lucene:lucene-analysis-common:9.2.0'
123-
implementation 'org.apache.lucene:lucene-highlighter:9.2.0'
118+
implementation 'org.apache.lucene:lucene-core:9.3.0'
119+
implementation 'org.apache.lucene:lucene-queryparser:9.3.0'
120+
implementation 'org.apache.lucene:lucene-queries:9.3.0'
121+
implementation 'org.apache.lucene:lucene-analysis-common:9.3.0'
122+
implementation 'org.apache.lucene:lucene-highlighter:9.3.0'
124123

125124
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.9.0'
126125
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
127126
implementation 'com.h2database:h2-mvstore:2.1.214'
128127

129128
implementation group: 'org.apache.tika', name: 'tika-core', version: '2.4.1'
130-
implementation 'com.ibm.icu:icu4j-charset:71.1'
131129

132130
// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
133131
implementation 'org.bouncycastle:bcprov-jdk18on:1.71'
134132

135133
implementation 'commons-cli:commons-cli:1.5.0'
136134

137-
implementation 'org.libreoffice:libreoffice:7.3.4'
138-
implementation 'org.libreoffice:unoloader:7.3.4'
135+
implementation 'org.libreoffice:libreoffice:7.3.5'
136+
implementation 'org.libreoffice:unoloader:7.3.5'
139137

140-
implementation 'io.github.java-diff-utils:java-diff-utils:4.11'
138+
implementation 'io.github.java-diff-utils:java-diff-utils:4.12'
141139
implementation 'info.debatty:java-string-similarity:2.0.0'
142140

143-
antlr3 'org.antlr:antlr:3.5.3'
144-
implementation 'org.antlr:antlr-runtime:3.5.3'
145-
146141
antlr4 'org.antlr:antlr4:4.9.3'
147142
implementation 'org.antlr:antlr4-runtime:4.9.3'
148143

@@ -208,9 +203,9 @@ dependencies {
208203

209204
implementation group: 'net.harawata', name: 'appdirs', version: '1.2.1'
210205

211-
testImplementation 'io.github.classgraph:classgraph:4.8.147'
212-
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
213-
testImplementation 'org.junit.platform:junit-platform-launcher:1.8.2'
206+
testImplementation 'io.github.classgraph:classgraph:4.8.149'
207+
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
208+
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.0'
214209

215210
testImplementation 'org.mockito:mockito-core:4.6.1'
216211
testImplementation 'org.xmlunit:xmlunit-core:2.9.0'
@@ -221,7 +216,7 @@ dependencies {
221216
testImplementation "org.testfx:testfx-junit5:4.0.16-alpha"
222217
testImplementation "org.hamcrest:hamcrest-library:2.2"
223218

224-
checkstyle 'com.puppycrawl.tools:checkstyle:10.3.1'
219+
checkstyle 'com.puppycrawl.tools:checkstyle:10.3.2'
225220
// xjc needs the runtime as well for the ant task, otherwise it fails
226221
xjc group: 'org.glassfish.jaxb', name: 'jaxb-xjc', version: '3.0.2'
227222
xjc group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '3.0.2'
@@ -274,14 +269,14 @@ task generateSource(dependsOn: ["generateBstGrammarSource",
274269
}
275270

276271
tasks.register("generateBstGrammarSource", JavaExec) {
277-
main = "org.antlr.Tool"
278-
classpath = configurations.antlr3
272+
main = "org.antlr.v4.Tool"
273+
classpath = configurations.antlr4
279274
group = "JabRef"
280-
description = 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr3.'
275+
description = 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr4.'
281276

282-
inputs.dir('src/main/antlr3/org/jabref/bst/')
277+
inputs.dir('src/main/antlr4/org/jabref/bst/')
283278
outputs.dir("src-gen/main/java/org/jabref/logic/bst/")
284-
args = ["-o", "src-gen/main/java/org/jabref/logic/bst/" , "$projectDir/src/main/antlr3/org/jabref/bst/Bst.g" ]
279+
args = ["-o", "src-gen/main/java/org/jabref/logic/bst/", "-visitor", "-no-listener", "-package", "org.jabref.logic.bst", "$projectDir/src/main/antlr4/org/jabref/bst/Bst.g4"]
285280
}
286281

287282
tasks.register("generateSearchGrammarSource", JavaExec) {

buildres/csl/csl-locales/.github/workflows/merge.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
- deleted: [ '*.csl', 'dependent/*.csl', '*.xml' ]
4949
workflows:
5050
- added|modified: .github/workflows/*.yaml
51+
updated_composer:
52+
- added|modified: composer.json
53+
deleted_composer:
54+
- deleted: composer.json
5155
5256
- name: Changed files
5357
if: github.event_name == 'push'
@@ -87,11 +91,24 @@ jobs:
8791
run: cd release && git rm ${{ steps.update.outputs.deleted_files }}
8892
if: github.event_name == 'push' && steps.update.outputs.deleted == 'true'
8993

94+
- name: Update composer.json
95+
if: steps.update.outputs.updated_composer == 'true'
96+
run: |
97+
cp composer.json release/composer.json
98+
cd release
99+
git add composer.json
100+
101+
- name: Delete composer.json
102+
if: steps.update.outputs.deleted_composer == 'true'
103+
run: |
104+
cd release
105+
git rm composer.json
106+
90107
- uses: stefanzweifel/git-auto-commit-action@v4
91108
with:
92109
repository: 'release'
93-
commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }}
94-
if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')
110+
commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }}
111+
if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true' || steps.update.outputs.updated_composer == 'true' || steps.update.outputs.deleted_composer == 'true')
95112

96113
- uses: stefanzweifel/git-auto-commit-action@v4
97114
with:
@@ -116,3 +133,21 @@ jobs:
116133
git-user: "csl-bot"
117134
git-user-email: [email protected]
118135
git-commit-message: copied ${{ steps.update.outputs.workflows_files }} from styles
136+
137+
- name: Bump version and push tag
138+
id: tag_version
139+
uses: mathieudutour/[email protected]
140+
with:
141+
github_token: ${{ secrets.GITHUB_TOKEN }}
142+
default_bump: patch
143+
if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')
144+
145+
- name: Create a GitHub release
146+
uses: softprops/[email protected]
147+
env:
148+
github_token: ${{ secrets.GITHUB_TOKEN }}
149+
with:
150+
tag_name: ${{ steps.tag_version.outputs.new_tag }}
151+
name: Release ${{ steps.tag_version.outputs.new_tag }}
152+
body: Released ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }}
153+
if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')

buildres/csl/csl-styles/.github/workflows/merge.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
- deleted: [ '*.csl', 'dependent/*.csl', '*.xml' ]
4949
workflows:
5050
- added|modified: .github/workflows/*.yaml
51+
updated_composer:
52+
- added|modified: composer.json
53+
deleted_composer:
54+
- deleted: composer.json
5155
5256
- name: Changed files
5357
if: github.event_name == 'push'
@@ -87,11 +91,24 @@ jobs:
8791
run: cd release && git rm ${{ steps.update.outputs.deleted_files }}
8892
if: github.event_name == 'push' && steps.update.outputs.deleted == 'true'
8993

94+
- name: Update composer.json
95+
if: steps.update.outputs.updated_composer == 'true'
96+
run: |
97+
cp composer.json release/composer.json
98+
cd release
99+
git add composer.json
100+
101+
- name: Delete composer.json
102+
if: steps.update.outputs.deleted_composer == 'true'
103+
run: |
104+
cd release
105+
git rm composer.json
106+
90107
- uses: stefanzweifel/git-auto-commit-action@v4
91108
with:
92109
repository: 'release'
93-
commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }}
94-
if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')
110+
commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }}
111+
if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true' || steps.update.outputs.updated_composer == 'true' || steps.update.outputs.deleted_composer == 'true')
95112

96113
- uses: stefanzweifel/git-auto-commit-action@v4
97114
with:
@@ -116,3 +133,21 @@ jobs:
116133
git-user: "csl-bot"
117134
git-user-email: [email protected]
118135
git-commit-message: copied ${{ steps.update.outputs.workflows_files }} from styles
136+
137+
- name: Bump version and push tag
138+
id: tag_version
139+
uses: mathieudutour/[email protected]
140+
with:
141+
github_token: ${{ secrets.GITHUB_TOKEN }}
142+
default_bump: patch
143+
if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')
144+
145+
- name: Create a GitHub release
146+
uses: softprops/[email protected]
147+
env:
148+
github_token: ${{ secrets.GITHUB_TOKEN }}
149+
with:
150+
tag_name: ${{ steps.tag_version.outputs.new_tag }}
151+
name: Release ${{ steps.tag_version.outputs.new_tag }}
152+
body: Released ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }}
153+
if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true')

0 commit comments

Comments
 (0)