Skip to content

Commit 5a6e222

Browse files
Upgrade dependencies (#35)
* Upgrade dependencies Co-authored-by: Jakob Braun <jakob.braun@posteo.de>
1 parent 473bcb3 commit 5a6e222

18 files changed

+574
-398
lines changed

.github/workflows/broken_links_checker.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@ on:
1111
jobs:
1212
linkChecker:
1313
runs-on: ubuntu-latest
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1417
steps:
15-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1619
- name: Configure broken links checker
1720
run: |
1821
mkdir -p ./target
1922
echo '{ "aliveStatusCodes": [429, 200] }' > ./target/broken_links_checker.json
20-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
23+
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.13
2124
with:
2225
use-quiet-mode: 'yes'
2326
use-verbose-mode: 'yes'

.github/workflows/ci-build-next-java.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,20 @@ on:
99
jobs:
1010
java-17-compatibility:
1111
runs-on: ubuntu-latest
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1215
steps:
1316
- name: Checkout the repository
14-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1518
with:
1619
fetch-depth: 0
1720
- name: Set up JDK 17
18-
uses: actions/setup-java@v2
21+
uses: actions/setup-java@v3
1922
with:
2023
distribution: 'temurin'
2124
java-version: 17
22-
- name: Cache local Maven repository
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.m2/repository
26-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27-
restore-keys: |
28-
${{ runner.os }}-maven-
25+
cache: 'maven'
2926
- name: Run tests and build with Maven
3027
run: |
3128
mvn --batch-mode --update-snapshots clean package -DtrimStackTrace=false \
@@ -35,3 +32,4 @@ jobs:
3532
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
3633
with:
3734
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
fail_if_no_tests: false

.github/workflows/ci-build.yml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,55 @@
11
name: CI Build
22

33
on:
4-
- push
4+
push:
5+
branches:
6+
- main
7+
pull_request:
58

69
jobs:
710
build:
811
runs-on: ubuntu-latest
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
915
steps:
1016
- name: Checkout the repository
11-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1218
with:
1319
fetch-depth: 0
1420
- name: Set up JDK 11
15-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v3
1622
with:
23+
distribution: 'temurin'
1724
java-version: 11
18-
- name: Cache local Maven repository
19-
uses: actions/cache@v2
25+
cache: 'maven'
26+
- name: Cache SonarCloud packages
27+
uses: actions/cache@v3
2028
with:
21-
path: ~/.m2/repository
22-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23-
restore-keys: |
24-
${{ runner.os }}-maven-
29+
path: ~/.sonar/cache
30+
key: ${{ runner.os }}-sonar
31+
restore-keys: ${{ runner.os }}-sonar
32+
- name: Enable testcontainer reuse
33+
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
2534
- name: Run tests and build with Maven
26-
run: mvn -B clean verify sonar:sonar --file pom.xml -Dsonar.organization=exasol -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
35+
run: |
36+
mvn --batch-mode clean verify \
37+
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
38+
-DtrimStackTrace=false
39+
- name: Publish Test Report
40+
uses: scacap/action-surefire-report@v1
41+
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
- name: Sonar analysis
45+
if: ${{ env.SONAR_TOKEN != null }}
46+
run: |
47+
mvn --batch-mode org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
48+
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
49+
-DtrimStackTrace=false \
50+
-Dsonar.organization=exasol \
51+
-Dsonar.host.url=https://sonarcloud.io \
52+
-Dsonar.login=$SONAR_TOKEN
2753
env:
28-
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
2954
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3055
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/dependencies_check.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Set up JDK 11
14-
uses: actions/setup-java@v2
14+
uses: actions/setup-java@v3
1515
with:
1616
distribution: 'temurin'
1717
java-version: 11
18-
- name: Cache local Maven repository
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.m2/repository
22-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23-
restore-keys: |
24-
${{ runner.os }}-maven-
18+
cache: 'maven'
2519
- name: Checking dependencies for vulnerabilities
26-
run: mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -f pom.xml
20+
run: mvn --batch-mode org.sonatype.ossindex.maven:ossindex-maven-plugin:audit -f pom.xml

.github/workflows/release_droid_prepare_original_checksum.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,23 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout the repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v3
1616
with:
1717
distribution: 'temurin'
1818
java-version: 11
19-
- name: Cache local Maven repository
20-
uses: actions/cache@v2
21-
with:
22-
path: ~/.m2/repository
23-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24-
restore-keys: |
25-
${{ runner.os }}-maven-
19+
cache: 'maven'
20+
- name: Enable testcontainer reuse
21+
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
2622
- name: Run tests and build with Maven
2723
run: mvn --batch-mode clean verify --file pom.xml
2824
- name: Prepare checksum
2925
run: find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + > original_checksum
3026
- name: Upload checksum to the artifactory
31-
uses: actions/upload-artifact@v2
27+
uses: actions/upload-artifact@v3
3228
with:
3329
name: original_checksum
3430
retention-days: 5

.github/workflows/release_droid_print_quick_checksum.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,15 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout the repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v3
1616
with:
1717
distribution: 'temurin'
1818
java-version: 11
19-
- name: Cache local Maven repository
20-
uses: actions/cache@v2
21-
with:
22-
path: ~/.m2/repository
23-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
24-
restore-keys: |
25-
${{ runner.os }}-maven-
19+
cache: 'maven'
2620
- name: Build with Maven skipping tests
2721
run: mvn --batch-mode clean verify -DskipTests
2822
- name: Print checksum

.github/workflows/release_droid_release_on_maven_central.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,23 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout the repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
1414
- name: Set up Maven Central Repository
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v3
1616
with:
1717
distribution: 'temurin'
1818
java-version: 11
19+
cache: 'maven'
1920
server-id: ossrh
2021
server-username: MAVEN_USERNAME
2122
server-password: MAVEN_PASSWORD
22-
- name: Import GPG Key
23-
run:
24-
gpg --import --batch <(echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}")
25-
- name: Cache local Maven repository
26-
uses: actions/cache@v2
27-
with:
28-
path: ~/.m2/repository
29-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30-
restore-keys: |
31-
${{ runner.os }}-maven-
23+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
24+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3225
- name: Publish to Central Repository
26+
run: mvn --batch-mode -Dgpg.skip=false -DskipTests clean deploy
3327
env:
3428
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3529
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
36-
run: mvn clean -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -DskipTests deploy
30+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout the repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818
- name: Set up JDK 11
19-
uses: actions/setup-java@v2
19+
uses: actions/setup-java@v3
2020
with:
2121
distribution: 'temurin'
2222
java-version: 11
23-
- name: Cache local Maven repository
24-
uses: actions/cache@v2
25-
with:
26-
path: ~/.m2/repository
27-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28-
restore-keys: |
29-
${{ runner.os }}-maven-
23+
cache: 'maven'
3024
- name: Build with Maven skipping tests
3125
run: mvn --batch-mode clean verify -DskipTests
3226
- name: Generate sha256sum files

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ venv/
3030
*.bak
3131
*.orig
3232
*.old
33-
*.md.html
33+
*.md.html
34+
*.flattened-pom.xml

.project-keeper.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sources:
2+
- type: maven
3+
path: pom.xml
4+
modules:
5+
- maven_central
6+
- integration_tests

0 commit comments

Comments
 (0)