Skip to content

Commit 16bc5a7

Browse files
committed
Merge branch 'develop'
2 parents 1cbd3f3 + be037e0 commit 16bc5a7

File tree

7 files changed

+160
-155
lines changed

7 files changed

+160
-155
lines changed

.github/workflows/maven-publish.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,19 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- name: Cache Maven packages
20+
- name: Use Cache for Maven packages
2121
uses: actions/cache@v2
2222
with:
2323
path: ~/.m2
2424
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2525
restore-keys: ${{ runner.os }}-m2
26-
26+
27+
- name: Import GPG keys
28+
run: 'echo -e "$GPG_FILE" | gpg2 --import --no-tty --batch --yes'
29+
shell: bash
30+
env:
31+
GPG_FILE: ${{secrets.GPG_FILE}}
32+
2733
- name: Set up Java for Apache Maven Central
2834
uses: actions/setup-java@v1
2935
with:
@@ -33,18 +39,12 @@ jobs:
3339
server-password: OSSRH_PASSWORD # env variable for token in deploy
3440
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
3541

36-
- name: Import GPG keys
37-
run: 'echo -e "$GPG_FILE" | gpg2 --import --no-tty --batch --yes'
38-
shell: bash
39-
env:
40-
GPG_FILE: ${{secrets.GPG_FILE}}
41-
42-
- name: Build with Maven
42+
- name: Build and Verify with Maven
4343
run: mvn --batch-mode --update-snapshots clean compile verify
4444

4545
- name: Publish to Apache Maven Central
4646
# run: mvn deploy --batch-mode --update-snapshots -P sign,!build-extras -Dmaven.test.skip=true
47-
run: mvn deploy --batch-mode --update-snapshots -P sign,!build-extras -Dmaven.test.skip=true
47+
run: mvn deploy --batch-mode --update-snapshots -P sign,!build-extras,deploy-ossrh -Dmaven.test.skip=true
4848
env:
4949
OSSRH_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
5050
OSSRH_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
@@ -56,11 +56,12 @@ jobs:
5656
java-version: 11
5757

5858
- name: Publish to GitHub Packages
59-
run: mvn deploy --batch-mode --update-snapshots -P sign,!build-extras,!deploy-ossrh -Dmaven.test.skip=true -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/csowada/ebus
59+
# -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/csowada/ebus
60+
run: mvn deploy --batch-mode --update-snapshots -P !sign,!build-extras,!deploy-ossrh,deploy-github -Dmaven.test.skip=true
6061
env:
6162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6263

63-
- name: Create Release
64+
- name: Create GitGub Release
6465
id: create_release
6566
uses: actions/create-release@v1
6667
env:

.github/workflows/maven.yml

+17-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Java CI with Maven
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ master, develop ]
99
pull_request:
10-
branches: [ master ]
10+
types: [opened, synchronize, reopened]
1111

1212
jobs:
1313

@@ -17,21 +17,33 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2022

2123
- name: Cache Maven packages
2224
uses: actions/cache@v2
2325
with:
2426
path: ~/.m2
2527
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2628
restore-keys: ${{ runner.os }}-m2
27-
29+
30+
- name: Cache SonarCloud packages
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.sonar/cache
34+
key: ${{ runner.os }}-sonar
35+
restore-keys: ${{ runner.os }}-sonar
36+
2837
- name: Set up Java
2938
uses: actions/setup-java@v1
3039
with:
3140
java-version: 11
3241

33-
- name: Build witrh Maven
34-
run: mvn --batch-mode --update-snapshots clean compile verify
42+
- name: Build and analyze
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
3547

3648
- run: mkdir staging && cp target/*.jar staging
3749

CHANGELOG.md

+102-86
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,120 @@
1-
## 1.0.7 (2020-05-17)
2-
3-
Features:
4-
5-
- Limit the ThreadPoolExecutor to max. 30 threads
6-
7-
Bugfixes:
8-
9-
- Add sender thread restart to main loop
10-
- Fix a NullPoint Exception
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
## Unreleased
5+
6+
## [1.1.2] - 2020-12-17
7+
### Added
8+
- Added ``sonarcloud`` to build pipeline
9+
### Removed
10+
- Removed all old CI files from the project
11+
12+
## [1.1.1] - 2020-12-17
13+
### Added
14+
- Added ``gitflow-maven-plugin`` to manage release process, see BUILD-HELP.md
15+
### Changed
16+
- Switched from Travis CI to GitHub Actions
17+
18+
## [1.1.0] - 2020-12-12
19+
### Added
20+
- Add Eclipse Null Annotionas to project
21+
### Changed
22+
- Changed a lot of code lines to fix several ``null`` issues etc.
23+
- Declare all dependencies in ``pom.xml`` as ``provided``
24+
25+
## [1.0.8] - 2020-06-21
26+
### Fixed
27+
- Fixed several ``NullPointException``
28+
29+
## [1.0.7] - 2020-05-17
30+
31+
### Changed
32+
- Limit the ThreadPoolExecutor to max. 30 threads
33+
34+
### Fixed
35+
- Add sender thread restart to main loop
36+
- Fix a NullPoint Exception
1137

12-
## 1.0.6 (2020-02-09)
38+
## [1.0.6] - 2020-02-09
1339

14-
Features:
40+
### Added
41+
- Add a send preparation function incl. auto attach crc if missing
1542

16-
- Add a send preparation function incl. auto attach crc if missing
17-
- Enhance fireOn... events, including some sendId fixes
43+
### Change
44+
- Enhance fireOn... events, including some sendId fixes
1845

19-
Bugfixes:
20-
21-
- Disable ``InterruptedIOException`` to prevent ebusd connector from closing after a short time
46+
### Fixed
47+
- Disable ``InterruptedIOException`` to prevent ebusd connector from closing after a short time
2248

23-
## 1.0.5 (2020-01-29)
49+
## [1.0.5] - 2020-01-29
2450

25-
Features:
26-
27-
- Enhance telegram matcher in Command registry
28-
- Add (debug) warning if master-slave command configuration is without slave part
29-
- Throw an exception on ``master-master`` commands with slave addresses that have no master address pair
51+
### Changed
52+
- Enhance telegram matcher in Command registry
53+
- Add (debug) warning if master-slave command configuration is without slave part
54+
- Throw an exception on ``master-master`` commands with slave addresses that have no master address pair
3055

31-
Bugfixes:
32-
33-
- Fix matcher in Command registry
34-
- Fix several nested template bugs
35-
- Fix internal clone() of nested templates
36-
- Set type and default value for nested types
37-
- Use list for ``template-block`` to also copy values without ``name``
38-
- Rename template to valueDto, better variable name
39-
- Add nested values to ``composeMasterData`` incl. test case
40-
- Fix parent method for nested values
41-
42-
## 1.0.4 (2020-01-21)
43-
44-
Features:
45-
46-
- Add Version class to identify build version, commit etc.
47-
48-
Bugfixes:
49-
50-
- Use timestamps for Bundle-Version
51-
52-
## 1.0.3 (2020-01-20)
53-
54-
Features:
55-
56-
- enhance ebusd controller with version check
57-
- update all unit tests
58-
- improve NRJavaSerial connector
59-
- add a warning if the received data doesn't match to the found config method.
60-
61-
Bugfixes:
62-
63-
- fix ``FF`` byte issue on sending
64-
- add a warning if a template-block element has no name (more a bug workaround!)
65-
- revert default telegram type to ``master-slave`` if not specified
66-
- harden slave length function, expect no slave data
56+
### Fixed
57+
- Fix matcher in Command registry
58+
- Fix several nested template bugs
59+
- Fix internal clone() of nested templates
60+
- Set type and default value for nested types
61+
- Use list for ``template-block`` to also copy values without ``name``
62+
- Rename template to valueDto, better variable name
63+
- Add nested values to ``composeMasterData`` incl. test case
64+
- Fix parent method for nested values
65+
66+
## [1.0.4] - 2020-01-21
67+
68+
### Added
69+
- Add Version class to identify build version, commit etc.
70+
71+
### Fixed
72+
- Use timestamps for Bundle-Version
73+
74+
## [1.0.3] - 2020-01-20
75+
76+
### Changed
77+
- enhance ebusd controller with version check
78+
- update all unit tests
79+
- improve NRJavaSerial connector
80+
- add a warning if the received data doesn't match to the found config method.
81+
82+
### Fixed
83+
- fix ``FF`` byte issue on sending
84+
- add a warning if a template-block element has no name (more a bug workaround!)
85+
- revert default telegram type to ``master-slave`` if not specified
86+
- harden slave length function, expect no slave data
6787

68-
## 1.0.2 (2020-01-12)
88+
## [1.0.2] - 2020-01-12
6989

70-
Features:
71-
72-
- check every send byte for LowLevelController
73-
- enhance error and parsing logging
74-
- enhance queue for ebusd controller
75-
- adjust NRJavaSerial driver for low latency
90+
### Changed
91+
- check every send byte for LowLevelController
92+
- enhance error and parsing logging
93+
- enhance queue for ebusd controller
94+
- adjust NRJavaSerial driver for low latency
7695

77-
Bugfixes:
78-
79-
- block send queue while controller is not connected
80-
- reduce Device Table Service log messages
96+
### Fixed
97+
- block send queue while controller is not connected
98+
- reduce Device Table Service log messages
8199

82-
## 1.0.1 (2020-01-03)
83-
84-
Features:
85-
86-
- add more details on connection errors
87-
- add more details on parser errors
88-
- add connection status incl. listeners to controllers
89-
90-
Bugfixes:
100+
## [1.0.1] - 2020-01-03
91101

92-
- fix thread interrupt handling
93-
- allow null values for date and/or time for "datetime" type
94-
- fix wrong replace broadcast message on building a telegram
95-
- block table services if connection is not established
96-
- add slave length to command match function to only process expected slave answer
102+
### Changed
103+
- add more details on connection errors
104+
- add more details on parser errors
105+
- add connection status incl. listeners to controllers
97106

107+
### Fixed
108+
- fix thread interrupt handling
109+
- allow null values for date and/or time for "datetime" type
110+
- fix wrong replace broadcast message on building a telegram
111+
- block table services if connection is not established
112+
- add slave length to command match function to only process expected slave answer
98113

99-
## 1.0.0 (2019-12-28)
100114

101-
Just a new label for the Alpha 0.9.22 release
115+
## [1.0.0] - 2019-12-28
116+
### Changed
117+
- Just a new label for the Alpha 0.9.22 release
102118

103119
## Alpha 0.9.22 (2019-12.28)
104120

azure-pipelines.yml

-22
This file was deleted.

cd/settings.xml

-27
This file was deleted.

0 commit comments

Comments
 (0)