Skip to content

Commit 1aee5e9

Browse files
authored
Initial commit
0 parents  commit 1aee5e9

24 files changed

+1231
-0
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# https://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
# Change these settings to your own preference
9+
indent_style = space
10+
indent_size = 2
11+
# We recommend you to keep these unchanged
12+
end_of_line = lf
13+
insert_final_newline = true
14+
charset = utf-8
15+
trim_trailing_whitespace = true
16+
max_line_length = 160
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Please use one of the following templates:
2+
3+
https://github.com/GITHUB_ORGANIZATION/GITHUB_REPOSITORY/issues/new/choose
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: 'Bug report'
3+
about: 'Report a bug'
4+
title:
5+
labels: 'Type: bug'
6+
7+
---
8+
9+
### Steps to reproduce
10+
11+
* Library version:
12+
* JDK version:
13+
* Operating system:
14+
* Complete executable reproducer: (e.g. GitHub Repo)
15+
* Steps: (what exactly are you doing with the above reproducer?)
16+
17+
### Expected behaviour
18+
19+
### Actual behaviour
20+
21+
(In case of exceptions provide full stack trace)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: 'Feature request'
3+
about: 'Suggest a new feature or enhancement'
4+
title:
5+
labels: 'Type: enhancement'
6+
assignees:
7+
8+
---
9+
10+
### Scenario
11+
12+
* Library version:
13+
* Description of your use case: (detailed description or executable reproducer, e.g. GitHub repo)
14+
15+
### Current Behaviour
16+
17+
### Wanted Behaviour
18+
19+
### Possible Workarounds

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
default-labels:
9+
- "Type: dependencies"

.github/release-notes.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
sections:
3+
- title: ":zap: Breaking Changes"
4+
labels: [ "Type: breaking" ]
5+
- title: ":rocket: Enhancements & Features"
6+
labels: [ "Type: enhancement", "Type: documentation", "Type: example" ]
7+
- title: ":bug: Bug Fixes"
8+
labels: [ "Type: bug" ]
9+
- title: ":hammer_and_wrench: Chore"
10+
labels: [ "Type: dependencies" ]
11+
issues:
12+
exclude:
13+
labels: [ "Type: Incorrect Repository", "Type: question" ]
14+
contributors:
15+
exclude:
16+
names: [ "dependabot[bot]", "codacy-badger" ]

.github/workflows/development.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Development branches
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '**/*'
8+
- '!master'
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
name: Build and run tests
15+
steps:
16+
# Checkout the code
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Expose branch name
21+
run: echo ${{ github.ref }}
22+
23+
# Setup JDK and Maven
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: 17
28+
distribution: zulu
29+
cache: maven
30+
31+
# Prepare
32+
- name: Prepare Maven Wrapper
33+
run: chmod +x ./mvnw
34+
35+
# Build
36+
- name: Build with Maven
37+
run: ./mvnw clean verify -U -B -T4 -ntp
38+
39+
# I-test
40+
- name: Run itest
41+
run: ./mvnw integration-test failsafe:verify -Pitest -U -B -T4 -ntp
42+
43+
# - name: Upload coverage to Codecov
44+
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
45+
# uses: codecov/codecov-action@v1.0.2
46+
# with:
47+
# token: ${{secrets.CODECOV_TOKEN}}
48+
49+
# - name: Upload test coverage to Codacy
50+
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
51+
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
52+
# env:
53+
# CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"

.github/workflows/master.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Produces and releases artifacts
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
name: Build and run tests
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
# Setup JDK and .m2/settings.xml
17+
- name: Set up JDK
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: 17
21+
cache: maven
22+
distribution: zulu
23+
server-id: ossrh
24+
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central
25+
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central
26+
27+
# Prepare
28+
- name: Prepare Maven Wrapper
29+
run: chmod +x ./mvnw
30+
31+
# Build
32+
- name: Build with Maven
33+
run: ./mvnw clean verify -U -B -T4 -ntp
34+
35+
# Get GPG private key into GPG
36+
- name: Import GPG Owner Trust
37+
run: echo ${{ secrets.GPG_OWNERTRUST }} | base64 --decode | gpg --import-ownertrust
38+
39+
- name: Import GPG key
40+
run: echo ${{ secrets.GPG_SECRET_KEYS }} | base64 --decode | gpg --import --no-tty --batch --yes
41+
42+
# Publish release
43+
- name: Deploy a new release version to Maven Central
44+
run: ./mvnw clean deploy -B -DskipTests -DskipExamples -Prelease -Dgpg.keyname="${{ secrets.GPG_KEYNAME }}" -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -ntp
45+
env:
46+
OSS_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
47+
OSS_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
48+
49+
# - name: Upload coverage information
50+
# uses: codecov/codecov-action@v2
51+
# with:
52+
# token: ${{ secrets.CODECOV_TOKEN }}
53+
54+
# - name: Upload test coverage to Codacy
55+
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
56+
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh)
57+
# env:
58+
# CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"

.github/workflows/release-notes.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Trigger the workflow on milestone events
2+
on:
3+
milestone:
4+
types: [closed]
5+
name: Milestone Closure
6+
jobs:
7+
create-release-notes:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@master
12+
- name: Create Release Notes Markdown
13+
uses: docker://decathlon/release-notes-generator-action:3.1.5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
16+
OUTPUT_FOLDER: temp_release_notes
17+
USE_MILESTONE_TITLE: "true"
18+
- name: Get the name of the created Release Notes file and extract Version
19+
run: |
20+
RELEASE_NOTES_FILE=$(ls temp_release_notes/*.md | head -n 1)
21+
echo "RELEASE_NOTES_FILE=$RELEASE_NOTES_FILE" >> $GITHUB_ENV
22+
VERSION=$(echo ${{ github.event.milestone.title }} | cut -d' ' -f2)
23+
echo "VERSION=$VERSION" >> $GITHUB_ENV
24+
- name: Create a Draft Release Notes on GitHub
25+
id: create_release
26+
uses: actions/create-release@v1
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
29+
with:
30+
tag_name: ${{ env.VERSION }}
31+
release_name: ${{ env.VERSION }}
32+
body_path: ${{ env.RELEASE_NOTES_FILE }}
33+
draft: true

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
target/
2+
3+
pom.xml.tag
4+
pom.xml.releaseBackup
5+
pom.xml.versionsBackup
6+
pom.xml.next
7+
8+
release.properties
9+
dependency-reduced-pom.xml
10+
buildNumber.properties
11+
12+
.mvn/timing.properties
13+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
14+
.mvn/wrapper/maven-wrapper.jar
15+
16+
### STS ###
17+
.apt_generated
18+
.classpath
19+
.factorypath
20+
.project
21+
.settings
22+
.springBeans
23+
.sts4-cache
24+
25+
### IntelliJ IDEA ###
26+
.idea/
27+
*.iws
28+
*.iml
29+
*.ipr
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
build/
38+
!**/src/main/**/build/
39+
!**/src/test/**/build/
40+
41+
### VS Code ###
42+
.vscode/
43+
44+
### DEV
45+
_tmp/
46+
.repository/

0 commit comments

Comments
 (0)