Skip to content

Commit d42a17f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fixOpenOffice
* upstream/master: (40 commits) add env var also to mv command add branch env var move to releases somehow the env vars don't get expanded fix dirs add circle ci config for building gradle jlink remove unix again crate unix archive update install4j to 8.0.1 add install4j install option for unix installer Add MIT license field Integrate with system themes snap: Add custom gradle plugin avoid committing python cache to git Add gtk3 support remove desktop gtk3 add desktop gtk 3 Update snapcraft to java 11 will require bionic now as base Bump jaxb-xjc from 2.2.4-1 to 2.3.2 (#4956) Fix/field inheritance (#5282) added comments ...
2 parents ecf2ff9 + a27a430 commit d42a17f

File tree

65 files changed

+3190
-1086
lines changed

Some content is hidden

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

65 files changed

+3190
-1086
lines changed

.circleci/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
- run: git submodule sync
3333
- run: git submodule update --init
3434
- run: ./gradlew -Pdev=true -Pinstall4jDir="install4j8" release --stacktrace
35+
- run: ./gradlew jlink
36+
- run: mv build/image jabref
37+
- run: tar cvzf JabRef-linux-${CIRCLE_BRANCH}-latest.tar.gz jabref
38+
- run: mv JabRef-linux-${CIRCLE_BRANCH}-latest.tar.gz build/releases/
3539
- save_cache:
3640
key: gradle
3741
paths:

.dependabot/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ update_configs:
55
- package_manager: "java:gradle"
66
directory: "/"
77
update_schedule: "weekly"
8+
default_labels:
9+
- "dependencies"
810
automerged_updates:
911
- match:
1012
dependency_type: "all"
@@ -13,6 +15,8 @@ update_configs:
1315
- package_manager: "submodules"
1416
directory: "/"
1517
update_schedule: "weekly"
18+
default_labels:
19+
- "dependencies"
1620
automerged_updates:
1721
- match:
1822
dependency_type: "all"

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ status.md
1010
# Install4J
1111
install4j6/
1212

13+
# Python
14+
__pycache__/
15+
1316
# Snap
1417
parts/
1518
stage/

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
1313

1414
### Changed
1515

16+
- We added a short DOI field formatter which shortens DOI to more human readable form. [koppor#343](https://github.com/koppor/jabref/issues/343)
17+
1618
### Fixed
1719

20+
- Inherit fields from cross-referenced entries as specified by biblatex [#5045](https://github.com/JabRef/jabref/issues/5045)
21+
1822
### Removed
1923

2024

@@ -70,7 +74,8 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
7074
## [5.0-alpha] – 2019-08-25
7175

7276
### Changed
73-
77+
- We added eventitle, eventdate and venue fields to @unpublished entry type.
78+
- We added @software and @dataSet entry type to biblatex.
7479
- All fields are now properly sorted alphabetically (in the subgroups of required/optional fields) when the entry is written to the bib file.
7580
- We fixed an issue where some importers used the field `pubstatus` instead of the standard BibTeX field `pubstate`.
7681
- We changed the latex command removal for docbook exporter. [#3838](https://github.com/JabRef/jabref/issues/3838)

build.gradle

+8-7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ plugins {
3535
// use the gradle build scan feature: https://scans.gradle.com/get-started
3636
buildScan { termsOfServiceUrl = 'https://gradle.com/terms-of-service'; termsOfServiceAgree = 'yes' }
3737

38+
// show stacktrace on error
39+
gradle.startParameter.showStacktrace = org.gradle.api.logging.configuration.ShowStacktrace.ALWAYS
3840

3941
apply plugin: 'java'
4042
apply plugin: 'application'
@@ -55,7 +57,7 @@ project.ext.threeDotVersion = "5.0.0.1"
5557
project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j8' : 'install4j8')
5658
sourceCompatibility = 11
5759
targetCompatibility = 11
58-
mainClassName = "org.jabref.JabRefLauncher"
60+
mainClassName = "$moduleName/org.jabref.JabRefLauncher"
5961

6062
// TODO: Ugly workaround to temporarily ignore build errors to dependencies of latex2unicode
6163
// These should be removed, as well as the files in the lib folder, as soon as they have valid module names
@@ -204,9 +206,9 @@ dependencies {
204206
compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '2.4.1'
205207

206208
testCompile 'junit:junit:4.12'
207-
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.1'
208-
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.1'
209-
testCompile 'org.junit.platform:junit-platform-launcher:1.5.1'
209+
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.2'
210+
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.2'
211+
testCompile 'org.junit.platform:junit-platform-launcher:1.5.2'
210212

211213
testCompile 'net.bytebuddy:byte-buddy-parent:1.10.1'
212214
testRuntime 'org.apache.logging.log4j:log4j-core:2.12.0'
@@ -225,7 +227,7 @@ dependencies {
225227
testCompile "org.testfx:testfx-junit5:4.0.15-alpha"
226228

227229
checkstyle 'com.puppycrawl.tools:checkstyle:8.24'
228-
xjc 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
230+
xjc group: 'org.glassfish.jaxb', name: 'jaxb-xjc', version: '2.3.2'
229231
jython 'org.python:jython-standalone:2.7.1'
230232
}
231233

@@ -351,10 +353,9 @@ task generateEndnoteSource(type: XjcTask) {
351353
group = 'JabRef'
352354
description = "Generates java files for the endnote importer."
353355

354-
schemaFile = "src/main/resources/xjc/endnote/RSXML.dtd"
356+
schemaFile = "src/main/resources/xjc/endnote/endnote.xsd"
355357
outputDirectory = "src/main/gen/"
356358
javaPackage = "org.jabref.logic.importer.fileformat.endnote"
357-
arguments = '-dtd'
358359
}
359360

360361
task generateModsSource(type: XjcTask) {

config/checkstyle/checkstyle.xml

+26-17
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,30 @@
88
<property name="header" value=""/>
99
</module>
1010

11+
<module name="SuppressionFilter">
12+
<property name="file" value="${config_loc}/suppressions.xml"/>
13+
</module>
14+
15+
<module name="BeforeExecutionExclusionFileFilter">
16+
<property name="fileNamePattern" value="module\-info\.java$"/>
17+
</module>
18+
1119
<module name="TreeWalker">
20+
<!-- Checks for Javadoc comments: https://checkstyle.org/config_javadoc.html -->
21+
<module name="InvalidJavadocPosition"/>
22+
<module name="JavadocMethod">
23+
<property name="allowUndeclaredRTE" value="true"/>
24+
<property name="allowMissingParamTags" value="true"/>
25+
<property name="allowMissingThrowsTags" value="true"/>
26+
<property name="allowMissingReturnTag" value="true"/>
27+
<property name="validateThrows" value="true"/>
28+
</module>
1229

30+
<!-- Checks for imports: https://checkstyle.org/config_import.html -->
1331
<module name="UnusedImports"/>
14-
1532
<module name="RedundantImport"/>
16-
1733
<module name="AvoidStarImport"/>
18-
1934
<module name="IllegalImport"/>
20-
2135
<module name="ImportOrder">
2236
<property name="groups" value="java,javax,javafx,org.jabref,*"/>
2337
<property name="ordered" value="true"/>
@@ -26,17 +40,18 @@
2640
<property name="sortStaticImportsAlphabetically" value="true"/>
2741
</module>
2842

43+
<!-- Checks for common coding problems: https://checkstyle.org/config_coding.html -->
44+
<module name="DeclarationOrder"/>
45+
46+
<!-- Checks for whitespace: https://checkstyle.org/config_whitespace.html -->
2947
<module name="EmptyLineSeparator">
3048
<property name="tokens"
3149
value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF"/>
3250
<property name="allowMultipleEmptyLines" value="false"/>
3351
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
3452
</module>
35-
36-
<module name="DeclarationOrder"/>
37-
38-
<!-- RCULRY causes issues if classes are nested within arrays, therefore not activated -->
3953
<module name="WhitespaceAround">
54+
<!-- RCULRY causes issues if classes are nested within arrays, therefore not activated -->
4055
<property name="tokens"
4156
value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV,
4257
DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
@@ -46,18 +61,12 @@
4661
SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
4762
</module>
4863

64+
<!-- Checks for Naming Conventions: https://checkstyle.org/config_naming.html -->
4965
<module name="ConstantName">
5066
<property name="format" value="^log(ger)?|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
5167
</module>
52-
53-
<module name="NeedBraces"/>
54-
</module>
5568

56-
<module name="SuppressionFilter">
57-
<property name="file" value="${config_loc}/suppressions.xml"/>
58-
</module>
59-
60-
<module name="BeforeExecutionExclusionFileFilter">
61-
<property name="fileNamePattern" value="module\-info\.java$"/>
69+
<!-- Checks for blocks: https://checkstyle.org/config_blocks.html -->
70+
<module name="NeedBraces"/>
6271
</module>
6372
</module>

scripts/prepare-install4j.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
wget --quiet -nc --show-progress https://download-gcdn.ej-technologies.com/install4j/install4j_unix_8_0.tar.gz
3-
tar -xf install4j_unix_8_0.tar.gz
4-
mv install4j8.0 install4j8
2+
wget --quiet -nc --show-progress https://download-gcdn.ej-technologies.com/install4j/install4j_unix_8_0_1.tar.gz
3+
tar -xf install4j_unix_8_0_1.tar.gz
4+
mv install4j8.0.1 install4j8

0 commit comments

Comments
 (0)