Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gradle from 6.8.3 to 7.0 #7619

Merged
merged 50 commits into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e09a9c9
Update Gradle Wrapper from 6.8.3 to 7.0.
gradle-update-robot Apr 12, 2021
25594e0
fix gradle compile errors
Siedlerchr Apr 12, 2021
d37d5f9
Merge branch 'main' into gradlew-update-7.0
Siedlerchr Apr 12, 2021
b5e4a81
update cache workflows
Siedlerchr Apr 12, 2021
ff0f558
update cachem, rename key to gradle 7
Siedlerchr Apr 12, 2021
5849c32
Try to fix compile issue
koppor Apr 12, 2021
5916595
Merge branch 'main' into gradlew-update-7.0
koppor Apr 12, 2021
a1ff517
Update build.gradle
koppor Apr 12, 2021
9dc446b
disable daemon and watch-fs
koppor Apr 12, 2021
d172824
Merge remote-tracking branch 'upstream/main' into gradlew-update-7.0
Siedlerchr Apr 16, 2021
64769ec
try to use tasks register
Siedlerchr Apr 16, 2021
f1b6a50
Try to ensure source generation
koppor Apr 17, 2021
37c6e1c
Merge branch 'main' into gradlew-update-7.0
Siedlerchr Apr 24, 2021
21585b4
Add extension for compile to make jlink work
Siedlerchr Apr 25, 2021
7ea3496
try with new cache
Siedlerchr Apr 25, 2021
76a4715
Merge remote-tracking branch 'upstream/main' into gradlew-update-7.0
Siedlerchr Apr 26, 2021
012dfb9
update modularity plugin
Siedlerchr Apr 26, 2021
5b6e522
Try with org.javamodularity.moduleplugin:1.8.1
koppor Apr 27, 2021
e756362
Remove quickfix
koppor Apr 27, 2021
01b53fb
specify outputs dir and use modulary 1.8.2
Siedlerchr May 2, 2021
858e5fb
dowmgrade plugin
Siedlerchr May 2, 2021
068cfdd
Update deployment.yml
Siedlerchr May 2, 2021
4adaa3f
add duplicate strategy exclude
Siedlerchr May 2, 2021
3635513
Merge branch 'gradlew-update-7.0' of github.com:JabRef/jabref into gr…
Siedlerchr May 2, 2021
69b3682
set inferModularity to false
Siedlerchr May 2, 2021
1f37009
Fix empty lines
koppor May 2, 2021
d351505
Fix empty lines
koppor May 2, 2021
398875a
Fix empty line
koppor May 2, 2021
7b63bbc
Disable full strack traces ALWAYS
koppor May 2, 2021
2ae05b9
add duplicate strategy
Siedlerchr May 2, 2021
168b110
Small code improvments
koppor May 2, 2021
5c288d6
Merge branch 'gradlew-update-7.0' of github.com:JabRef/jabref into gr…
koppor May 2, 2021
3630774
Remove jcenter()
koppor May 2, 2021
47b3ade
Merge remote-tracking branch 'origin/main' into gradlew-update-7.0
koppor May 2, 2021
d192a7e
Fix mavenCentral
koppor May 2, 2021
f14becd
Fix groovy
koppor May 2, 2021
b86837f
add maven central
Siedlerchr May 2, 2021
2f79358
Merge branch 'gradlew-update-7.0' of github.com:JabRef/jabref into gr…
Siedlerchr May 2, 2021
5126721
add maven central
Siedlerchr May 2, 2021
532596c
Switch to mavenCentral
koppor May 2, 2021
8b35c21
Improve readability
koppor May 2, 2021
7e6c623
Merge branch 'gradlew-update-7.0' of github.com:JabRef/jabref into gr…
koppor May 2, 2021
aec1a20
Resolve quirks with generateJournalAbbreviationList by copying java c…
koppor May 3, 2021
ad66a8c
Refine documentation for buildSrc
koppor May 3, 2021
1b3a1fe
Generated sources flow into "src-gen/" directory having the same layo…
koppor May 3, 2021
35ce3a6
add checkstyle suppression
Siedlerchr May 3, 2021
295a62f
fix markdownlint
Siedlerchr May 3, 2021
e42432e
JabRef runs out ouf IntelliJ again
koppor May 3, 2021
dd32aa0
Add some try-again hint
koppor May 3, 2021
3f19cab
Remove idea config block -> we do it manually
koppor May 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ env:
AstrophysicsDataSystemAPIKey: ${{ secrets.AstrophysicsDataSystemAPIKey }}
IEEEAPIKey: ${{ secrets.IEEEAPIKey }}
OSXCERT: ${{ secrets.OSX_SIGNING_CERT }}
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.vfs.watch=false

jobs:
build:
Expand Down Expand Up @@ -69,12 +70,14 @@ jobs:
distribution: 'adopt'
if: matrix.os == 'windows-latest'
- name: Restore gradle cache
uses: actions/cache@master
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7x-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
${{ runner.os }}-gradle7x-
- name: Setup OSX key chain on OSX
if: matrix.os == 'macos-latest'
uses: apple-actions/import-codesign-certs@v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/refresh-journal-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
mkdir -p $GITHUB_WORKSPACE/build/journals
cp * $GITHUB_WORKSPACE/build/journals/

# ensure that the .java classes are the most recent ones
cp $GITHUB_WORKSPACE/src/main/java/org/jabref/logic/journals/* $GITHUB_WORKSPACE/buildSrc/src/copied/java/org/jabref/logic/journals

# create .mv file
cd $GITHUB_WORKSPACE
./gradlew generateJournalAbbreviationList

- uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/tests-fetchers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
- uses: actions/cache@v2
name: Restore gradle cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle-
- name: Run fetcher tests
run: ./gradlew fetcherTest
env:
Expand Down
91 changes: 33 additions & 58 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
name: Restore gradle cache
- name: Restore gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle7-
- name: Run check style reporter
uses: nikitasavinov/checkstyle-action@master
with:
Expand All @@ -65,20 +60,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
- uses: actions/cache@v2
name: Restore gradle cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle7-
- name: Run tests
run: xvfb-run --auto-servernum ./gradlew check -x checkstyleJmh -x checkstyleMain -x checkstyleTest
env:
Expand Down Expand Up @@ -110,20 +100,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
name: Restore gradle cache
- name: Restore gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle7-
- name: Run tests on PostgreSQL
run: ./gradlew databaseTest --rerun-tasks
env:
Expand Down Expand Up @@ -157,20 +142,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
- uses: actions/cache@v2
name: Restore gradle cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle7-
- name: Run GUI tests
run: xvfb-run --auto-servernum ./gradlew guiTest
env:
Expand Down Expand Up @@ -208,20 +188,15 @@ jobs:
with:
java-version: 14
distribution: 'adopt'
- uses: actions/cache@v1
name: Restore gradle cache
- name: Restore gradle cache
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle7-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.OS }}-gradle-${{ env.cache-name }}-
${{ runner.OS }}-gradle-
${{ runner.OS }}-
- uses: actions/cache@v1
name: Restore gradle wrapper
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
${{ runner.os }}-gradle7-
- name: Update test coverage metrics
if: ${{ steps.checksecrets.outputs.secretspresent }}
run: xvfb-run --auto-servernum ./gradlew jacocoTestReport && bash <(curl -s https://codecov.io/bash);
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# no generated files in version control
src/main/gen/
src/main/generated/
src-gen/

# private data
/buildres/jabref-cert-2016.p12
Expand Down
Loading