Skip to content

Commit b4249ba

Browse files
committed
Merge branch 'updateGradle7' into test-module-issue
* updateGradle7: (39 commits) try upgrading gradle Only disable move to file dir when path equals (#7269) Improved detection of long DOI's within text (#7260) Add missing author and fix name Fix style of highlighted checkboxes while searching in preferences (#7258) Updates to institution citation keys (#7210) Bump xmlunit-core from 2.8.1 to 2.8.2 (#7251) Bump classgraph from 4.8.97 to 4.8.98 (#7250) Bump bcprov-jdk15on from 1.67 to 1.68 (#7249) Bump xmlunit-matchers from 2.8.1 to 2.8.2 (#7252) Bump unirest-java from 3.11.06 to 3.11.09 (#7254) Bump org.beryx.jlink from 2.23.0 to 2.23.1 (#7253) Bump pascalgn/automerge-action from v0.12.0 to v0.13.0 (#7255) Added a check to integrate with the flatpak package (#7248) New translations JabRef_en.properties (Chinese Traditional) (#7247) Update code-howtos.md GitBook: [master] 5 pages and 25 assets modified New Crowdin updates (#7246) add language mapping for chinese remove chinese content ...
2 parents 41d9e5c + 146b5a1 commit b4249ba

File tree

92 files changed

+1441
-450
lines changed

Some content is hidden

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

92 files changed

+1441
-450
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Merge pull requests
19-
uses: pascalgn/automerge-action@v0.12.0
19+
uses: pascalgn/automerge-action@v0.13.0
2020
if: steps.waitforstatuschecks.outputs.status == 'success'
2121
env:
2222
MERGE_METHOD: "squash"

.github/workflows/deployment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deployment
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- master

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,6 @@ jobs:
261261
echo
262262
echo "In case you want to use a different one, please comment here and adjust your name in your git configuration for future commits"
263263
echo
264-
echo "Just adding yourself into the AUHTORS file does not help as it is overwritten by our script ./scripts/generate-authors."
264+
echo "Just adding yourself into the AUTHORS file does not help as it is overwritten by our script ./scripts/generate-authors."
265265
echo "Read more on the AUTHORS file at found at https://github.com/JabRef/jabref/blob/master/CONTRIBUTING.md#author-credits"
266266
exit 1

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Felix Luthman
133133
Felix Wilke
134134
Fernando Santagata
135135
ffffatgoose
136+
Fiyinfolu Eludire
136137
Florian Beetz
137138
Florian Straßer
138139
Foivos Christoulakis
@@ -163,6 +164,7 @@ Hollyqqqqq
163164
Houssem Nasri
164165
hrandrianasolo
165166
Hussain Arif
167+
IfIWantedTo
166168
Igor Chernyavsky
167169
Igor Steinmacher
168170
Illes Solt

CHANGELOG.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Changelog
32

43
All notable changes to this project will be documented in this file.
@@ -12,13 +11,27 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
1211

1312
### Added
1413

14+
- We added the extension support and the external application support (For Texshow, Texmaker and LyX) to the flatpak [#7248](https://github.com/JabRef/jabref/pull/7248)
15+
16+
### Changed
17+
18+
### Fixed
19+
20+
- We fixed an issue with the style of highlighted check boxes while searching in preferences. [#7226](https://github.com/JabRef/jabref/issues/7226)
21+
- We fixed an issue where the option "Move file to file directory" was disabled in the entry editor for all files [#7194](https://github.com/JabRef/jabref/issues/7194)
22+
23+
### Removed
24+
25+
## [5.2] – 2020-12-24
26+
27+
### Added
28+
1529
- We added a validation to check if the current database location is shared, preventing an exception when Pulling Changes From Shared Database. [#6959](https://github.com/JabRef/jabref/issues/6959)
1630
- We added a query parser and mapping layer to enable conversion of queries formulated in simplified lucene syntax by the user into api queries. [#6799](https://github.com/JabRef/jabref/pull/6799)
1731
- We added some basic functionality to customise the look of JabRef by importing a css theme file. [#5790](https://github.com/JabRef/jabref/issues/5790)
1832
- We added connection check function in network preference setting [#6560](https://github.com/JabRef/jabref/issues/6560)
1933
- We added support for exporting to YAML. [#6974](https://github.com/JabRef/jabref/issues/6974)
2034
- We added a DOI format and organization check to detect [American Physical Society](https://journals.aps.org/) journals to copy the article ID to the page field for cases where the page numbers are missing. [#7019](https://github.com/JabRef/jabref/issues/7019)
21-
- We added a new fetcher to enable users to search jstor.org [#6627](https://github.com/JabRef/jabref/issues/6627)
2235
- We added an error message in the New Entry dialog that is shown in case the fetcher did not find anything . [#7000](https://github.com/JabRef/jabref/issues/7000)
2336
- We added a new formatter to output shorthand month format. [#6579](https://github.com/JabRef/jabref/issues/6579)
2437
- We added support for the new Microsoft Edge browser in all platforms. [#7056](https://github.com/JabRef/jabref/pull/7056)
@@ -80,9 +93,12 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
8093
- We fixed an issue where the password for a shared SQL database was not remembered [#6869](https://github.com/JabRef/jabref/issues/6869)
8194
- We fixed an issue where newly added entires were not synced to a shared SQL database [#7176](https://github.com/JabRef/jabref/issues/7176)
8295
- We fixed an issue where the PDF-Content importer threw an exception when no DOI number is present at the first page of the PDF document [#7203](https://github.com/JabRef/jabref/issues/7203)
96+
- We fixed an issue where authors that only have last names were incorrectly identified as institutes when generating citation keys [#7199](https://github.com/JabRef/jabref/issues/7199)
97+
- We fixed an issue where institutes were incorrectly identified as universities when generating citation keys [#6942](https://github.com/JabRef/jabref/issues/6942)
8398

8499
### Removed
85100

101+
- We removed the Google Scholar fetcher and the ACM fetcher do not work due to traffic limitations [#6369](https://github.com/JabRef/jabref/issues/6369)
86102
- We removed the menu entry "Manage external file types" because it's already in 'Preferences' dialog [#6991](https://github.com/JabRef/jabref/issues/6991)
87103
- We removed the integrity check "Abbreviation detected" for the field journal/journaltitle in the entry editor [#3925](https://github.com/JabRef/jabref/issues/3925)
88104

@@ -483,7 +499,8 @@ The changelog of JabRef 4.x is available at the [v4.3.1 tag](https://github.com/
483499
The changelog of JabRef 3.x is available at the [v3.8.2 tag](https://github.com/JabRef/jabref/blob/v3.8.2/CHANGELOG.md).
484500
The changelog of JabRef 2.11 and all previous versions is available as [text file in the v2.11.1 tag](https://github.com/JabRef/jabref/blob/v2.11.1/CHANGELOG).
485501

486-
[Unreleased]: https://github.com/JabRef/jabref/compare/v5.1...HEAD
502+
[Unreleased]: https://github.com/JabRef/jabref/compare/v5.2...HEAD
503+
[5.2]: https://github.com/JabRef/jabref/compare/v5.1...v5.2
487504
[5.1]: https://github.com/JabRef/jabref/compare/v5.0...v5.1
488505
[5.0]: https://github.com/JabRef/jabref/compare/v5.0-beta...v5.0
489506
[5.0-beta]: https://github.com/JabRef/jabref/compare/v5.0-alpha...v5.0-beta

build.gradle

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ plugins {
1313
id 'me.champeau.gradle.jmh' version '0.5.2'
1414
id 'com.github.ben-manes.versions' version '0.36.0'
1515
id 'org.javamodularity.moduleplugin' version '1.7.0'
16-
id 'org.openjfx.javafxplugin' version '0.0.9'
17-
id 'org.beryx.jlink' version '2.23.0'
16+
// id 'org.openjfx.javafxplugin' version '0.0.9'
17+
id 'org.beryx.jlink' version '2.23.1'
1818
// nicer test outputs during running and completion
1919
// Homepage: https://github.com/radarsh/gradle-test-logger-plugin
2020
id 'com.adarshr.test-logger' version '2.1.1'
@@ -38,23 +38,21 @@ version = project.findProperty('projVersion') ?: '100.0.0'
3838
java {
3939
sourceCompatibility = JavaVersion.VERSION_14
4040
targetCompatibility = JavaVersion.VERSION_14
41+
4142
}
4243

4344
application {
4445
mainClassName = "org.jabref.gui.JabRefLauncher"
4546
mainModule ='org.jabref'
4647
}
48+
modularity.disableEffectiveArgumentsAdjustment()
4749

4850
// TODO: Ugly workaround to temporarily ignore build errors to dependencies of latex2unicode
4951
// These should be removed, as well as the files in the lib folder, as soon as they have valid module names
5052
modularity.patchModule("test", "fastparse_2.12-1.0.0.jar")
5153
modularity.patchModule("test2", "fastparse-utils_2.12-1.0.0.jar")
5254
modularity.patchModule("test3", "sourcecode_2.12-0.1.4.jar")
5355

54-
// These are the Java version requirements we will check on each start of JabRef
55-
ext.minRequiredJavaVersion = "1.8.0_171"
56-
ext.allowJava9 = true
57-
5856
sourceSets {
5957
main {
6058
java {
@@ -92,10 +90,6 @@ configurations {
9290
}
9391
}
9492

95-
javafx {
96-
version = "15"
97-
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.swing' ]
98-
}
9993

10094
dependencies {
10195
// Include all jar-files in the 'lib' folder as dependencies
@@ -111,7 +105,7 @@ dependencies {
111105
implementation group: 'org.apache.tika', name: 'tika-core', version: '1.25'
112106

113107
// required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635
114-
implementation 'org.bouncycastle:bcprov-jdk15on:1.67'
108+
implementation 'org.bouncycastle:bcprov-jdk15on:1.68'
115109

116110
implementation 'commons-cli:commons-cli:1.4'
117111

@@ -153,6 +147,12 @@ dependencies {
153147
implementation group: 'jakarta.annotation', name: 'jakarta.annotation-api', version: '1.3.5'
154148

155149
// JavaFX stuff
150+
151+
// https://mvnrepository.com/artifact/org.openjfx/javafx-controls
152+
implementation group: 'org.openjfx', name: 'javafx-controls', version: '15.0.1'
153+
implementation group: 'org.openjfx', name: 'javafx-fxml', version: '15.0.1'
154+
implementation group: 'org.openjfx', name: 'javafx-web', version: '15.0.1'
155+
156156
implementation 'de.jensd:fontawesomefx-commons:11.0'
157157
implementation 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-11'
158158
implementation 'de.saxsys:mvvmfx-validation:1.9.0-SNAPSHOT'
@@ -165,7 +165,7 @@ dependencies {
165165
implementation 'org.controlsfx:controlsfx:11.0.3'
166166

167167
implementation 'org.jsoup:jsoup:1.13.1'
168-
implementation 'com.konghq:unirest-java:3.11.06'
168+
implementation 'com.konghq:unirest-java:3.11.09'
169169

170170
implementation 'org.slf4j:slf4j-api:2.0.0-alpha1'
171171
implementation group: 'org.apache.logging.log4j', name: 'log4j-jcl', version: '3.0.0-SNAPSHOT'
@@ -194,7 +194,7 @@ dependencies {
194194
implementation 'com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:0.62.2'
195195
implementation 'com.vladsch.flexmark:flexmark-ext-gfm-tasklist:0.62.2'
196196

197-
testImplementation 'io.github.classgraph:classgraph:4.8.97'
197+
testImplementation 'io.github.classgraph:classgraph:4.8.98'
198198
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
199199
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.7.0'
200200
testImplementation 'org.junit.platform:junit-platform-launcher:1.7.0'
@@ -203,8 +203,8 @@ dependencies {
203203
testRuntime group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'
204204
testRuntime group: 'org.apache.logging.log4j', name: 'log4j-jul', version: '3.0.0-SNAPSHOT'
205205
testImplementation 'org.mockito:mockito-core:3.6.28'
206-
testImplementation 'org.xmlunit:xmlunit-core:2.8.1'
207-
testImplementation 'org.xmlunit:xmlunit-matchers:2.8.1'
206+
testImplementation 'org.xmlunit:xmlunit-core:2.8.2'
207+
testImplementation 'org.xmlunit:xmlunit-matchers:2.8.2'
208208
testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.15.0'
209209
testImplementation 'com.tngtech.archunit:archunit-junit5-api:0.15.0'
210210
testImplementation "org.testfx:testfx-core:4.0.17-alpha-SNAPSHOT"
@@ -275,15 +275,12 @@ processResources {
275275
"azureInstrumentationKey": System.getenv('AzureInstrumentationKey'),
276276
"springerNatureAPIKey": System.getenv('SpringerNatureAPIKey'),
277277
"astrophysicsDataSystemAPIKey": System.getenv('AstrophysicsDataSystemAPIKey'),
278-
"ieeeAPIKey": System.getenv('IEEEAPIKey'),
279-
"minRequiredJavaVersion": minRequiredJavaVersion,
280-
"allowJava9": allowJava9
281-
278+
"ieeeAPIKey": System.getenv('IEEEAPIKey')
282279
)
283280
filteringCharset = 'UTF-8'
284281
}
285282

286-
filesMatching("resource/**/meta.xml") {
283+
filesMatching(["resources/resource/ods/meta.xml", "resources/resource/openoffice/meta.xml"]) {
287284
expand version: project.version
288285
}
289286
}

buildres/linux/jabrefHost.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
#!/usr/bin/python3 -u
2-
3-
# Note that running python with the `-u` flag is required on Windows,
4-
# in order to ensure that stdin and stdout are opened in binary, rather
5-
# than text, mode.
1+
#!/usr/bin/python3
62

73
import json
84
import logging
@@ -15,17 +11,24 @@
1511
import sys
1612
from pathlib import Path
1713

18-
# We assume that this python script is located in "jabref/lib" while the executable is "jabref/bin/JabRef"
14+
# Try a set of possible launchers to execute JabRef
1915
script_dir = Path(__file__).resolve().parent.parent
2016
relpath_path = script_dir / "bin/JabRef"
2117
lowercase_path = shutil.which("jabref")
2218
uppercase_path = shutil.which("JabRef")
19+
20+
# Relative path used in the portable install
2321
if relpath_path.exists():
2422
JABREF_PATH = relpath_path
23+
# Lowercase launcher used in deb/rpm/snap packages
2524
elif lowercase_path is not None and os.path.exists(lowercase_path):
2625
JABREF_PATH = Path(lowercase_path)
26+
# Uppercase launcher used in Arch AUR package
2727
elif uppercase_path is not None and os.path.exists(uppercase_path):
2828
JABREF_PATH = Path(uppercase_path)
29+
# FLatpak support
30+
elif subprocess.run(["flatpak", "info", "org.jabref.jabref"], capture_output=True).returncode == 0:
31+
JABREF_PATH = "flatpak run org.jabref.jabref"
2932
else:
3033
logging.error("Could not determine JABREF_PATH")
3134
sys.exit(-1)
@@ -70,7 +73,7 @@ def send_message(message):
7073

7174
def add_jabref_entry(data):
7275
"""Send string via cli as literal to preserve special characters"""
73-
cmd = [str(JABREF_PATH), "--importBibtex", r"{}".format(data)]
76+
cmd = str(JABREF_PATH).split() + ["--importBibtex", r"{}".format(data)]
7477
logging.info("Try to execute command {}".format(cmd))
7578
try:
7679
response = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
@@ -90,7 +93,7 @@ def add_jabref_entry(data):
9093
logging.info(str(message))
9194

9295
if "status" in message and message["status"] == "validate":
93-
cmd = [str(JABREF_PATH), "--version"]
96+
cmd = str(JABREF_PATH).split() + ["--version"]
9497
try:
9598
response = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
9699
except subprocess.CalledProcessError as exc:

crowdin.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ files:
55
two_letters_code:
66
pt-BR: pt_BR
77
id: in
8+
zh-CN: zh_CN
9+
zh-TW: zh_TW

docs/.gitbook/assets/contribution-process-reviews (2).svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)