Skip to content

Commit bd6eccc

Browse files
committed
Enable github ci integration.
Signed-off-by: Łukasz Dywicki <[email protected]>
1 parent af86e08 commit bd6eccc

File tree

4 files changed

+92
-12
lines changed

4 files changed

+92
-12
lines changed

.github/SECURITY.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ConnectorIO Addons Security Policy
2+
3+
This repository consist addons which can be used in combination with openHAB project.
4+
ConnectorIO sp. z o.o. do maintain compatibility of all addons with all below versions of openHAB.
5+
The openHAB project have its own maintenance policy which is independent of this one.
6+
7+
| OH / Addon version | Repository branch | Supportability |
8+
|--------------------|-------------------|--------------------|
9+
| < 3.0 | :x: | :x: |
10+
| 3.0.x | master | :white_check_mark: |
11+
| 3.1.x | 3.1.x | :white_check_mark: |
12+
| 3.2.x | 3.2.x | :white_check_mark: |
13+
| 3.3.x | 3.3.x | :white_check_mark: |
14+
| 3.4.x | 3.4.x | :white_check_mark: |
15+
16+
Versions below openHAB 3.0.x are not supported.
17+
18+
## Reporting a Vulnerability
19+
20+
Bugs, code flaws which can be lead to a vulnerability can be reported to [email protected].
21+
While security is an important aspect of software development, we as small organization might need up to two weeks to answer your report.
22+
We might need up to two months to address issue, especially if we will be required to provide a patch to one of this project dependencies.
23+
24+
All code included in this repository is provided for community and for free and was developed in great extent independently of commercial context.
25+
Thus, we are not able to compensation of your efforts nor provide any financial gratification for your work.

.github/workflows/maven.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Maven build
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
java: [ 11 ]
14+
os: [ ubuntu-latest ]
15+
fail-fast: false
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Set up JDK 11
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: ${{ matrix.java }}
26+
distribution: 'temurin'
27+
- name: Cache local Maven repository
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.m2/repository
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
${{ runner.os }}-maven-
34+
- name: Cache SonarCloud packages
35+
uses: actions/cache@v3
36+
with:
37+
path: ~/.sonar/cache
38+
key: ${{ runner.os }}-sonar
39+
restore-keys: ${{ runner.os }}-sonar
40+
- name: Build with Maven
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
44+
run: |
45+
mvn -B -fae clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ConnectorIO_connectorio-addons -Dsonar.organization=connectorio -Dsonar.host.url=https://sonarcloud.io
46+
47+
- name: Upload Test Report
48+
uses: actions/upload-artifact@v3
49+
if: success() || failure()
50+
with:
51+
name: "java-test-report-${{ matrix.os }}-java-${{ matrix.java }}"
52+
path: |
53+
**/surefire-reports/TEST-*.xml
54+
**/failsafe-reports/TEST-*.xml
55+

bundles/org.connectorio.addons.io.transport.mbus/src/main/java/org/openmuc/jmbus/wireless/WMBusAdapterConnectionBuilder.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ public class WMBusAdapterConnectionBuilder {
1010

1111
private final Builder builder;
1212

13-
public WMBusAdapterConnectionBuilder(WMBusListener listener, WMBusMode mode) {
14-
builder = new Builder(null, listener) {
15-
@Override
16-
WMBusConnection build(TransportLayer transportLayer) throws IOException {
17-
WMBusConnectionCUL connectionCUL = new WMBusConnectionCUL(mode, listener, transportLayer);
18-
connectionCUL.open();
19-
return connectionCUL;
20-
}
21-
};
22-
}
13+
// public WMBusAdapterConnectionBuilder(WMBusListener listener, WMBusMode mode) {
14+
// builder = new Builder(null, listener) {
15+
// @Override
16+
// WMBusConnection build(TransportLayer transportLayer) throws IOException {
17+
// WMBusConnectionCUL connectionCUL = new WMBusConnectionCUL(mode, listener, transportLayer);
18+
// connectionCUL.open();
19+
// return connectionCUL;
20+
// }
21+
// };
22+
// }
2323

2424
public WMBusAdapterConnectionBuilder(WMBusManufacturer wmBusManufacturer, WMBusListener listener) {
2525
builder = new Builder(wmBusManufacturer, listener);

parent/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<compiler.source>11</compiler.source>
3838
<compiler.target>11</compiler.target>
3939

40-
<plc4x-extras.version>0.8.1-SNAPSHOT</plc4x-extras.version>
41-
<bacnet4j-wrapper.version>1.3.0-SNAPSHOT</bacnet4j-wrapper.version>
40+
<plc4x-extras.version>0.8.1</plc4x-extras.version>
41+
<bacnet4j-wrapper.version>1.3.0-alpha3</bacnet4j-wrapper.version>
4242

4343
<openhab.version>3.0.4-connectorio-1</openhab.version>
4444
<openhab-distro.version>3.0.4</openhab-distro.version>

0 commit comments

Comments
 (0)