Skip to content

Commit 061f385

Browse files
jakobbraunmorazow
andauthored
bug/87 Fixed creation of connections with password but empty username (#88)
* bug/87 Fixed creation of connections with password but empty username Co-authored-by: morazow <[email protected]>
1 parent 3d613d0 commit 061f385

34 files changed

+859
-127
lines changed

.github/workflows/broken_links_checker.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ on:
44
schedule:
55
- cron: "0 5 * * *"
66
push:
7+
branches:
8+
- main
9+
pull_request:
710

811
jobs:
912
linkChecker:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v2
16+
- name: Configure broken links checker
17+
run: |
18+
mkdir -p ./target
19+
echo '{ "aliveStatusCodes": [429, 200] }' > ./target/broken_links_checker.json
1320
- uses: gaurav-nelson/github-action-markdown-link-check@v1
1421
with:
1522
use-quiet-mode: 'yes'
16-
use-verbose-mode: 'yes'
23+
use-verbose-mode: 'yes'
24+
config-file: ./target/broken_links_checker.json
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI Build next Java
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
java-17-compatibility:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout the repository
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: 'temurin'
21+
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-
29+
- name: Run tests and build with Maven
30+
run: |
31+
mvn --batch-mode --update-snapshots clean package -DtrimStackTrace=false \
32+
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
33+
- name: Publish Test Report
34+
uses: scacap/action-surefire-report@v1
35+
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dependencies_check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up JDK 11
14-
uses: actions/setup-java@v1
14+
uses: actions/setup-java@v2
1515
with:
16+
distribution: 'temurin'
1617
java-version: 11
1718
- name: Cache local Maven repository
1819
uses: actions/cache@v2

.github/workflows/release_droid_prepare_original_checksum.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v1
15+
uses: actions/setup-java@v2
1616
with:
17+
distribution: 'temurin'
1718
java-version: 11
1819
- name: Cache local Maven repository
1920
uses: actions/cache@v2
@@ -23,7 +24,7 @@ jobs:
2324
restore-keys: |
2425
${{ runner.os }}-maven-
2526
- name: Run tests and build with Maven
26-
run: mvn -B clean verify --file pom.xml
27+
run: mvn --batch-mode clean verify --file pom.xml
2728
- name: Prepare checksum
2829
run: find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + > original_checksum
2930
- name: Upload checksum to the artifactory

.github/workflows/release_droid_print_quick_checksum.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v1
15+
uses: actions/setup-java@v2
1616
with:
17+
distribution: 'temurin'
1718
java-version: 11
1819
- name: Cache local Maven repository
1920
uses: actions/cache@v2
@@ -23,7 +24,7 @@ jobs:
2324
restore-keys: |
2425
${{ runner.os }}-maven-
2526
- name: Build with Maven skipping tests
26-
run: mvn -B clean verify -DskipTests
27+
run: mvn --batch-mode clean verify -DskipTests
2728
- name: Print checksum
2829
run: echo 'checksum_start==';find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + | xargs;echo '==checksum_end'
2930

.github/workflows/release_droid_release_on_maven_central.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
- name: Set up Maven Central Repository
15-
uses: actions/setup-java@v1
15+
uses: actions/setup-java@v2
1616
with:
17+
distribution: 'temurin'
1718
java-version: 11
1819
server-id: ossrh
1920
server-username: MAVEN_USERNAME

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818
- name: Set up JDK 11
19-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v2
2020
with:
21+
distribution: 'temurin'
2122
java-version: 11
2223
- name: Cache local Maven repository
2324
uses: actions/cache@v2
@@ -27,12 +28,19 @@ jobs:
2728
restore-keys: |
2829
${{ runner.os }}-maven-
2930
- name: Build with Maven skipping tests
30-
run: mvn clean verify -DskipTests
31+
run: mvn --batch-mode clean verify -DskipTests
32+
- name: Generate sha256sum files
33+
run: find target -maxdepth 1 -name *.jar -exec bash -c 'sha256sum {} > {}.sha256' \;
3134
- name: Upload assets to the GitHub release draft
3235
uses: shogo82148/actions-upload-release-asset@v1
3336
with:
3437
upload_url: ${{ github.event.inputs.upload_url }}
3538
asset_path: target/*.jar
39+
- name: Upload sha256sum files
40+
uses: shogo82148/actions-upload-release-asset@v1
41+
with:
42+
upload_url: ${{ github.event.inputs.upload_url }}
43+
asset_path: target/*.sha256
3644
- name: Upload error-code-report
3745
uses: shogo82148/actions-upload-release-asset@v1
3846
with:

.gitignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,21 @@ buildNumber.properties
1313
# Intellij
1414
.idea
1515
# Intellij recommends to share iml files, however, better don't share files which might be outdated
16-
*.iml
16+
*.iml
17+
.DS_Store
18+
*.swp
19+
local
20+
.dbeaver*
21+
**/*.log
22+
.directory
23+
venv/
24+
target
25+
.cache
26+
.project
27+
.classpath
28+
~*
29+
*.lock
30+
*.bak
31+
*.orig
32+
*.old
33+
*.md.html

0 commit comments

Comments
 (0)