Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
csowada committed Dec 17, 2020
2 parents 1cbd3f3 + be037e0 commit 16bc5a7
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 155 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache Maven packages
- name: Use Cache for Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2


- name: Import GPG keys
run: 'echo -e "$GPG_FILE" | gpg2 --import --no-tty --batch --yes'
shell: bash
env:
GPG_FILE: ${{secrets.GPG_FILE}}

- name: Set up Java for Apache Maven Central
uses: actions/setup-java@v1
with:
Expand All @@ -33,18 +39,12 @@ jobs:
server-password: OSSRH_PASSWORD # env variable for token in deploy
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Import GPG keys
run: 'echo -e "$GPG_FILE" | gpg2 --import --no-tty --batch --yes'
shell: bash
env:
GPG_FILE: ${{secrets.GPG_FILE}}

- name: Build with Maven
- name: Build and Verify with Maven
run: mvn --batch-mode --update-snapshots clean compile verify

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

- name: Publish to GitHub Packages
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
# -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/csowada/ebus
run: mvn deploy --batch-mode --update-snapshots -P !sign,!build-extras,!deploy-ossrh,deploy-github -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
- name: Create GitGub Release
id: create_release
uses: actions/create-release@v1
env:
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Java CI with Maven

on:
push:
branches: [ master ]
branches: [ master, develop ]
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]

jobs:

Expand All @@ -17,21 +17,33 @@ jobs:

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

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2


- name: Cache SonarCloud packages
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11

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

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

Expand Down
188 changes: 102 additions & 86 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,104 +1,120 @@
## 1.0.7 (2020-05-17)

Features:

- Limit the ThreadPoolExecutor to max. 30 threads

Bugfixes:

- Add sender thread restart to main loop
- Fix a NullPoint Exception
# Changelog
All notable changes to this project will be documented in this file.

## Unreleased

## [1.1.2] - 2020-12-17
### Added
- Added ``sonarcloud`` to build pipeline
### Removed
- Removed all old CI files from the project

## [1.1.1] - 2020-12-17
### Added
- Added ``gitflow-maven-plugin`` to manage release process, see BUILD-HELP.md
### Changed
- Switched from Travis CI to GitHub Actions

## [1.1.0] - 2020-12-12
### Added
- Add Eclipse Null Annotionas to project
### Changed
- Changed a lot of code lines to fix several ``null`` issues etc.
- Declare all dependencies in ``pom.xml`` as ``provided``

## [1.0.8] - 2020-06-21
### Fixed
- Fixed several ``NullPointException``

## [1.0.7] - 2020-05-17

### Changed
- Limit the ThreadPoolExecutor to max. 30 threads

### Fixed
- Add sender thread restart to main loop
- Fix a NullPoint Exception

## 1.0.6 (2020-02-09)
## [1.0.6] - 2020-02-09

Features:
### Added
- Add a send preparation function incl. auto attach crc if missing

- Add a send preparation function incl. auto attach crc if missing
- Enhance fireOn... events, including some sendId fixes
### Change
- Enhance fireOn... events, including some sendId fixes

Bugfixes:

- Disable ``InterruptedIOException`` to prevent ebusd connector from closing after a short time
### Fixed
- Disable ``InterruptedIOException`` to prevent ebusd connector from closing after a short time

## 1.0.5 (2020-01-29)
## [1.0.5] - 2020-01-29

Features:

- Enhance telegram matcher in Command registry
- Add (debug) warning if master-slave command configuration is without slave part
- Throw an exception on ``master-master`` commands with slave addresses that have no master address pair
### Changed
- Enhance telegram matcher in Command registry
- Add (debug) warning if master-slave command configuration is without slave part
- Throw an exception on ``master-master`` commands with slave addresses that have no master address pair

Bugfixes:

- Fix matcher in Command registry
- Fix several nested template bugs
- Fix internal clone() of nested templates
- Set type and default value for nested types
- Use list for ``template-block`` to also copy values without ``name``
- Rename template to valueDto, better variable name
- Add nested values to ``composeMasterData`` incl. test case
- Fix parent method for nested values

## 1.0.4 (2020-01-21)

Features:

- Add Version class to identify build version, commit etc.

Bugfixes:

- Use timestamps for Bundle-Version

## 1.0.3 (2020-01-20)

Features:

- enhance ebusd controller with version check
- update all unit tests
- improve NRJavaSerial connector
- add a warning if the received data doesn't match to the found config method.

Bugfixes:

- fix ``FF`` byte issue on sending
- add a warning if a template-block element has no name (more a bug workaround!)
- revert default telegram type to ``master-slave`` if not specified
- harden slave length function, expect no slave data
### Fixed
- Fix matcher in Command registry
- Fix several nested template bugs
- Fix internal clone() of nested templates
- Set type and default value for nested types
- Use list for ``template-block`` to also copy values without ``name``
- Rename template to valueDto, better variable name
- Add nested values to ``composeMasterData`` incl. test case
- Fix parent method for nested values

## [1.0.4] - 2020-01-21

### Added
- Add Version class to identify build version, commit etc.

### Fixed
- Use timestamps for Bundle-Version

## [1.0.3] - 2020-01-20

### Changed
- enhance ebusd controller with version check
- update all unit tests
- improve NRJavaSerial connector
- add a warning if the received data doesn't match to the found config method.

### Fixed
- fix ``FF`` byte issue on sending
- add a warning if a template-block element has no name (more a bug workaround!)
- revert default telegram type to ``master-slave`` if not specified
- harden slave length function, expect no slave data

## 1.0.2 (2020-01-12)
## [1.0.2] - 2020-01-12

Features:

- check every send byte for LowLevelController
- enhance error and parsing logging
- enhance queue for ebusd controller
- adjust NRJavaSerial driver for low latency
### Changed
- check every send byte for LowLevelController
- enhance error and parsing logging
- enhance queue for ebusd controller
- adjust NRJavaSerial driver for low latency

Bugfixes:

- block send queue while controller is not connected
- reduce Device Table Service log messages
### Fixed
- block send queue while controller is not connected
- reduce Device Table Service log messages

## 1.0.1 (2020-01-03)

Features:

- add more details on connection errors
- add more details on parser errors
- add connection status incl. listeners to controllers

Bugfixes:
## [1.0.1] - 2020-01-03

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

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

## 1.0.0 (2019-12-28)

Just a new label for the Alpha 0.9.22 release
## [1.0.0] - 2019-12-28
### Changed
- Just a new label for the Alpha 0.9.22 release

## Alpha 0.9.22 (2019-12.28)

Expand Down
22 changes: 0 additions & 22 deletions azure-pipelines.yml

This file was deleted.

27 changes: 0 additions & 27 deletions cd/settings.xml

This file was deleted.

Loading

0 comments on commit 16bc5a7

Please sign in to comment.