Skip to content

Commit a90118d

Browse files
authored
Merge branch 'openhab:main' into main
2 parents 7dda582 + 958c43e commit a90118d

File tree

14,074 files changed

+83183
-53619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,074 files changed

+83183
-53619
lines changed

.github/workflows/ci-build.yml

+5-26
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
java: [ '17', '21', 'profile-j21' ]
21+
java: [ '21' ]
2222
maven: [ '3.9.9' ]
2323
os: [ 'ubuntu-24.04' ]
2424
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
@@ -46,25 +46,17 @@ jobs:
4646
4747
- name: Set up Java ${{ matrix.java }}
4848
uses: actions/setup-java@v4
49-
if: ${{ matrix.java != 'profile-j21' }}
5049
with:
5150
distribution: 'temurin'
5251
java-version: ${{ matrix.java }}
5352

54-
- name: Set up Java ${{ matrix.java }}
55-
uses: actions/setup-java@v4
56-
if: ${{ matrix.java == 'profile-j21' }}
57-
with:
58-
distribution: 'temurin'
59-
java-version: ${{ 21 }}
60-
6153
- name: Set up Maven ${{ matrix.maven }}
6254
uses: stCarolas/setup-maven@v5
6355
with:
6456
maven-version: ${{ matrix.maven }}
6557

6658
- name: Register Problem Matchers
67-
if: ${{ matrix.java == '17' }}
59+
if: ${{ matrix.java == '21' }}
6860
id: problem_matchers
6961
run: |
7062
echo "::add-matcher::.github/openhab-compile-problems.json"
@@ -77,7 +69,6 @@ jobs:
7769
format: 'csv'
7870

7971
- name: Build
80-
if: ${{ matrix.java != 'profile-j21' }}
8172
id: build
8273
run: './.github/scripts/maven-build'
8374
env:
@@ -88,34 +79,22 @@ jobs:
8879
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
8980
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
9081
91-
- name: Build
92-
if: ${{ matrix.java == 'profile-j21' }}
93-
id: build-j21
94-
run: './.github/scripts/maven-build clean verify -B -T 1.5C -U -Pj21'
95-
env:
96-
CHANGED_FILES: ${{ steps.files.outputs.all }}
97-
MAVEN_OPTS: >-
98-
-Xmx2g
99-
-Dmaven.wagon.http.retryHandler.count=5
100-
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
101-
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
102-
10382
- name: Upload Build Log
104-
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure') || (steps.build-j21.outcome == 'success') || (steps.build-j21.outcome == 'failure')) }}
83+
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
10584
uses: actions/upload-artifact@v4
10685
with:
10786
name: build-log-java-${{ matrix.java }}-${{ matrix.os }}
10887
path: build.log
10988

11089
- name: Upload SAT Summary Report
111-
if: ${{ matrix.java == '17' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
90+
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
11291
uses: actions/upload-artifact@v4
11392
with:
11493
name: sat-summary-report
11594
path: target/summary_report.html
11695

11796
- name: Report SAT Errors as Annotations
118-
if: ${{ matrix.java == '17' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
97+
if: ${{ matrix.java == '21' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
11998
uses: ghys/checkstyle-github-action@main
12099
with:
121100
title: CheckStyle Violations

CODEOWNERS

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
/bundles/org.openhab.binding.boschindego/ @jofleck @jlaur
5959
/bundles/org.openhab.binding.boschshc/ @david-pace @GerdZanker
6060
/bundles/org.openhab.binding.bosesoundtouch/ @marvkis @tratho
61-
/bundles/org.openhab.binding.broadlink/ @dag81
61+
/bundles/org.openhab.binding.broadlink/ @AntonJansen
6262
/bundles/org.openhab.binding.broadlinkthermostat/ @flo-02-mu
6363
/bundles/org.openhab.binding.bsblan/ @hypetsch
6464
/bundles/org.openhab.binding.bticinosmarther/ @MrRonfo
@@ -466,6 +466,7 @@
466466
/bundles/org.openhab.voice.mactts/ @kaikreuzer
467467
/bundles/org.openhab.voice.marytts/ @kaikreuzer
468468
/bundles/org.openhab.voice.mimictts/ @dalgwen
469+
/bundles/org.openhab.voice.openaitts/ @Artur-Fedjukevits
469470
/bundles/org.openhab.voice.picotts/ @FlorianSW
470471
/bundles/org.openhab.voice.pipertts/ @GiviMAD
471472
/bundles/org.openhab.voice.pollytts/ @openhab/add-ons-maintainers

bom/openhab-addons/pom.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons.bom</groupId>
99
<artifactId>org.openhab.addons.reactor.bom</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>org.openhab.addons.bom.openhab-addons</artifactId>
@@ -2301,6 +2301,11 @@
23012301
<artifactId>org.openhab.voice.mimictts</artifactId>
23022302
<version>${project.version}</version>
23032303
</dependency>
2304+
<dependency>
2305+
<groupId>org.openhab.addons.bundles</groupId>
2306+
<artifactId>org.openhab.voice.openaitts</artifactId>
2307+
<version>${project.version}</version>
2308+
</dependency>
23042309
<dependency>
23052310
<groupId>org.openhab.addons.bundles</groupId>
23062311
<artifactId>org.openhab.voice.picotts</artifactId>

bom/openhab-core-index/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons.bom</groupId>
99
<artifactId>org.openhab.addons.reactor.bom</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>org.openhab.addons.bom.openhab-core-index</artifactId>

bom/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons</groupId>
99
<artifactId>org.openhab.addons.reactor</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<groupId>org.openhab.addons.bom</groupId>

bom/runtime-index/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons.bom</groupId>
99
<artifactId>org.openhab.addons.reactor.bom</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>org.openhab.addons.bom.runtime-index</artifactId>

bom/test-index/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons.bom</groupId>
99
<artifactId>org.openhab.addons.reactor.bom</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>org.openhab.addons.bom.test-index</artifactId>

bundles/create_openhab_binding_skeleton.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ IF %ARGC% NEQ 3 (
1010
exit /B 1
1111
)
1212

13-
SET OpenhabVersion="4.3.0-SNAPSHOT"
13+
SET OpenhabVersion="5.0.0-SNAPSHOT"
1414

1515
SET BindingIdInCamelCase=%~1
1616
SET BindingIdInLowerCase=%BindingIdInCamelCase%

bundles/create_openhab_binding_skeleton.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[ $# -lt 3 ] && { echo "Usage: $0 <BindingIdInCamelCase> <Author> <GitHub Username>"; exit 1; }
44

5-
openHABVersion=4.3.0-SNAPSHOT
5+
openHABVersion=5.0.0-SNAPSHOT
66

77
camelcaseId=$1
88
id=`echo $camelcaseId | tr '[:upper:]' '[:lower:]'`

bundles/org.openhab.automation.groovyscripting/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.openhab.addons.bundles</groupId>
99
<artifactId>org.openhab.addons.reactor.bundles</artifactId>
10-
<version>4.3.0-SNAPSHOT</version>
10+
<version>5.0.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>org.openhab.automation.groovyscripting</artifactId>

bundles/org.openhab.automation.groovyscripting/src/main/java/org/openhab/automation/groovyscripting/internal/CustomizableGroovyClassLoader.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) 2010-2024 Contributors to the openHAB project
1+
/*
2+
* Copyright (c) 2010-2025 Contributors to the openHAB project
33
*
44
* See the NOTICE file(s) distributed with this work for additional
55
* information.

bundles/org.openhab.automation.groovyscripting/src/main/java/org/openhab/automation/groovyscripting/internal/GroovyScriptEngineFactory.java

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) 2010-2024 Contributors to the openHAB project
1+
/*
2+
* Copyright (c) 2010-2025 Contributors to the openHAB project
33
*
44
* See the NOTICE file(s) distributed with this work for additional
55
* information.
@@ -51,7 +51,15 @@ public void scopeValues(ScriptEngine scriptEngine, Map<String, Object> scopeValu
5151
ImportCustomizer importCustomizer = new ImportCustomizer();
5252
for (Map.Entry<String, Object> entry : scopeValues.entrySet()) {
5353
if (entry.getValue() instanceof Class<?> clazz) {
54-
importCustomizer.addImport(entry.getKey(), clazz.getCanonicalName());
54+
String canonicalName = clazz.getCanonicalName();
55+
try {
56+
// Only add imports for classes that are available to the classloader
57+
getClass().getClassLoader().loadClass(canonicalName);
58+
importCustomizer.addImport(entry.getKey(), canonicalName);
59+
logger.debug("Added import for {} as {}", entry.getKey(), canonicalName);
60+
} catch (ClassNotFoundException e) {
61+
logger.debug("Unable to add import for {} as {}", entry.getKey(), canonicalName, e);
62+
}
5563
} else {
5664
scriptEngine.put(entry.getKey(), entry.getValue());
5765
}

bundles/org.openhab.automation.groovyscripting/src/main/java/org/openhab/automation/groovyscripting/internal/package-info.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright (c) 2010-2024 Contributors to the openHAB project
1+
/*
2+
* Copyright (c) 2010-2025 Contributors to the openHAB project
33
*
44
* See the NOTICE file(s) distributed with this work for additional
55
* information.

0 commit comments

Comments
 (0)