Skip to content

Commit 5e2b275

Browse files
authored
Merge pull request #7 from azam/develop
Release v1.0.2
2 parents efa5108 + d70b127 commit 5e2b275

File tree

12 files changed

+1368
-664
lines changed

12 files changed

+1368
-664
lines changed

.github/release.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
categories:
5+
- title: "🏁 Release"
6+
labels:
7+
- release
8+
- title: "⚠️ Breaking Changes"
9+
labels:
10+
- Semver-Major
11+
- breaking-change
12+
- title: "🆕 Enhancements"
13+
labels:
14+
- Semver-Minor
15+
- enhancement
16+
- title: "🕷 Fixes"
17+
labels:
18+
- fix
19+
- title: "🛠️ Dependencies"
20+
labels:
21+
- dependencies
22+
- title: "📝 Others"
23+
labels:
24+
- '*'
25+
exclude:
26+
labels:
27+
- dependencies
28+
- fix
29+
- breaking-change
30+
- enhancement
31+
- release

.github/workflows/build.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
tags:
9+
- 'v[0-9]+.[0-9]+.[0-9]+'
10+
pull_request:
11+
types:
12+
- opened
13+
- reopened
14+
- synchronize
15+
schedule:
16+
- cron: '0 9 * * 3'
17+
workflow_dispatch:
18+
19+
jobs:
20+
test:
21+
name: test-${{matrix.distribution}}-${{matrix.version}}
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
name:
26+
- jdk8
27+
- jdk11
28+
include:
29+
- name: jdk8
30+
version: 8
31+
distribution: temurin
32+
- name: jdk11
33+
version: 11
34+
distribution: temurin
35+
- name: jdk16
36+
version: 16
37+
distribution: temurin
38+
- name: jdk17
39+
version: 17
40+
distribution: temurin
41+
steps:
42+
- name: checkout-${{matrix.name}}
43+
uses: actions/checkout@v2
44+
- name: setup-toolchain-${{matrix.name}}
45+
uses: actions/setup-java@v2
46+
with:
47+
java-version: ${{matrix.version}}
48+
distribution: ${{matrix.distribution}}
49+
cache: maven
50+
- name: verify-${{matrix.name}}
51+
run: mvn verify --settings .settings.xml -Dgpg.skip -B -V
52+
publish-dry-run:
53+
name: publish-dry-run
54+
uses: ./.github/workflows/publish-dry-run.yml

.github/workflows/publish-dry-run.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: publish-dry-run
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-dry-run:
8+
name: publish-dry-run
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
packages: write
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v3
16+
- name: setup-toolchain
17+
uses: actions/setup-java@v2
18+
with:
19+
java-version: 8
20+
distribution: temurin
21+
cache: maven
22+
- name: setup-gpg
23+
run: 'echo -n "${{secrets.MAVEN_GPG_PRIVATE_KEY}}" | base64 --decode | gpg --batch --import'
24+
- name: publish-dry-run
25+
env:
26+
MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}}
27+
MAVEN_TOKEN: ${{secrets.MAVEN_TOKEN}}
28+
MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}}
29+
run: mvn deploy -P release --batch-mode --settings .settings.xml -DskipTests=true -DperformRelease=false -Dmaven.deploy.skip=true --update-snapshots -B -V

.github/workflows/publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: publish-dry-run
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish-dry-run:
11+
name: publish-dry-run
12+
uses: ./.github/workflows/publish-dry-run.yml
13+
publish:
14+
name: publish
15+
needs:
16+
- publish-dry-run
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
packages: write
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@v3
24+
- name: setup-toolchain
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: 8
28+
distribution: temurin
29+
cache: maven
30+
- name: setup-gpg
31+
run: 'echo -n "${{secrets.MAVEN_GPG_PRIVATE_KEY}}" | base64 --decode | gpg --batch --import'
32+
- name: publish
33+
env:
34+
MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}}
35+
MAVEN_TOKEN: ${{secrets.MAVEN_TOKEN}}
36+
MAVEN_GPG_PASSPHRASE: ${{secrets.MAVEN_GPG_PASSPHRASE}}
37+
run: mvn deploy -P release --batch-mode --settings .settings.xml -DperformRelease=false --update-snapshots -B -V

.gitignore

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# https://github.com/github/gitignore/blob/master/Java.gitignore
2+
3+
# Compiled class file
4+
*.class
5+
6+
# Log file
7+
*.log
8+
9+
# BlueJ files
10+
*.ctxt
11+
12+
# Mobile Tools for Java (J2ME)
13+
.mtj.tmp/
14+
15+
# Package Files #
16+
*.jar
17+
*.war
18+
*.nar
19+
*.ear
20+
*.zip
21+
*.tar.gz
22+
*.rar
23+
24+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
25+
hs_err_pid*
26+
27+
# https://github.com/github/gitignore/blob/master/Maven.gitignore
28+
29+
target/
30+
pom.xml.tag
31+
pom.xml.releaseBackup
32+
pom.xml.versionsBackup
33+
pom.xml.next
34+
release.properties
35+
dependency-reduced-pom.xml
36+
buildNumber.properties
37+
.mvn/timing.properties
38+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
39+
.mvn/wrapper/maven-wrapper.jar
40+
41+
# local
42+
43+
.classpath
44+
.project
45+
.settings/
46+
.vscode/

.settings.xml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
4-
<servers>
5-
<server>
6-
<id>ossrh</id>
7-
<username>${env.SONATYPE_USERNAME}</username>
8-
<password>${env.SONATYPE_PASSWORD}</password>
9-
</server>
10-
</servers>
11-
</settings>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
<servers>
4+
<server>
5+
<id>maven</id>
6+
<username>${env.MAVEN_USERNAME}</username>
7+
<password>${env.MAVEN_TOKEN}</password>
8+
</server>
9+
<server>
10+
<id>gpg.passphrase</id>
11+
<passphrase>${env.MAVEN_GPG_PASSPHRASE}</passphrase>
12+
</server>
13+
</servers>
14+
</settings>

.travis.yml

-37
This file was deleted.

0 commit comments

Comments
 (0)