Skip to content

Commit 02356d1

Browse files
#8 add main manifest (#9)
* Upgrade dependencies * Upgrade to PK 2 * Make jar executable * Update user guide to use -jar for starting * Fix typos Co-authored-by: Muhammet Orazov <[email protected]>
1 parent 521ffe5 commit 02356d1

28 files changed

+865
-500
lines changed

.classpath

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/broken_links_checker.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@ 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
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1117
steps:
12-
- uses: actions/checkout@v2
13-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
18+
- uses: actions/checkout@v3
19+
- name: Configure broken links checker
20+
run: |
21+
mkdir -p ./target
22+
echo '{ "aliveStatusCodes": [429, 200] }' > ./target/broken_links_checker.json
23+
- uses: gaurav-nelson/[email protected]
1424
with:
1525
use-quiet-mode: 'yes'
16-
use-verbose-mode: 'yes'
26+
use-verbose-mode: 'yes'
27+
config-file: ./target/broken_links_checker.json
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
steps:
16+
- name: Checkout the repository
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
distribution: 'temurin'
24+
java-version: 17
25+
cache: 'maven'
26+
- name: Run tests and build with Maven
27+
run: |
28+
mvn --batch-mode --update-snapshots clean package -DtrimStackTrace=false \
29+
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
30+
- name: Publish Test Report
31+
uses: scacap/action-surefire-report@v1
32+
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
fail_if_no_tests: false

.github/workflows/ci-build.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +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-
25-
- name: "Prepare container reuse"
26-
run: |
27-
echo 'testcontainers.reuse.enable=true' > "/home/runner/.testcontainers.properties"
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"
2834
- name: Run tests and build with Maven
2935
run: |
30-
mvn --batch-mode --update-snapshots clean verify sonar:sonar --file pom.xml -DtrimStackTrace=false \
31-
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
32-
-Dsonar.organization=exasol -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
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
3353
env:
34-
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
3554
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3655
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/dependencies_check.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +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@v1
14+
uses: actions/setup-java@v3
1515
with:
16+
distribution: 'temurin'
1617
java-version: 11
17-
- name: Cache local Maven repository
18-
uses: actions/cache@v2
19-
with:
20-
path: ~/.m2/repository
21-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22-
restore-keys: |
23-
${{ runner.os }}-maven-
18+
cache: 'maven'
2419
- name: Checking dependencies for vulnerabilities
25-
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: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +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@v1
15+
uses: actions/setup-java@v3
1616
with:
17+
distribution: 'temurin'
1718
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-
19+
cache: 'maven'
20+
- name: Enable testcontainer reuse
21+
run: echo 'testcontainers.reuse.enable=true' > "$HOME/.testcontainers.properties"
2522
- name: Run tests and build with Maven
26-
run: mvn -B clean verify --file pom.xml
23+
run: mvn --batch-mode clean verify --file pom.xml
2724
- name: Prepare checksum
2825
run: find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + > original_checksum
2926
- name: Upload checksum to the artifactory
30-
uses: actions/upload-artifact@v2
27+
uses: actions/upload-artifact@v3
3128
with:
3229
name: original_checksum
3330
retention-days: 5

.github/workflows/release_droid_print_quick_checksum.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,17 @@ 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@v1
15+
uses: actions/setup-java@v3
1616
with:
17+
distribution: 'temurin'
1718
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-
19+
cache: 'maven'
2520
- name: Build with Maven skipping tests
26-
run: mvn -B clean verify -DskipTests
21+
run: mvn --batch-mode clean verify -DskipTests
2722
- name: Print checksum
2823
run: echo 'checksum_start==';find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + | xargs;echo '==checksum_end'
2924

.github/workflows/release_droid_release_on_maven_central.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/release_droid_upload_github_release_assets.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@ 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@v1
19+
uses: actions/setup-java@v3
2020
with:
21+
distribution: 'temurin'
2122
java-version: 11
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-
23+
cache: 'maven'
2924
- name: Build with Maven skipping tests
30-
run: mvn clean verify -DskipTests
25+
run: mvn --batch-mode clean verify -DskipTests
3126
- name: Generate sha256sum files
3227
run: find target -maxdepth 1 -name *.jar -exec bash -c 'sha256sum {} > {}.sha256' \;
3328
- name: Upload assets to the GitHub release draft

.gitignore

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,23 @@
33
*.bak
44
*.log
55
*.lock
6-
*.md.html
6+
*.md.html
7+
.DS_Store
8+
*.swp
9+
local
10+
.dbeaver*
11+
**/*.log
12+
.directory
13+
venv/
14+
.idea
15+
*.iml
16+
target
17+
.cache
18+
dependency-reduced-pom.xml
19+
.project
20+
.classpath
21+
pom.xml.versionsBackup
22+
~*
23+
*.orig
24+
*.old
25+
*.flattened-pom.xml

.project

Lines changed: 0 additions & 24 deletions
This file was deleted.

.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+
- integration_tests
6+
- jar_artifact

0 commit comments

Comments
 (0)