Commit Graph

153 Commits (5.0.x)

Author SHA1 Message Date
openhab-bot 09f67680be [unleash-maven-plugin] Preparation for next development cycle. 2025-08-19 14:26:11 +00:00
Holger Friedrich ad430a7716
Fix upgradetool dependencies, regression of #4855 (#4924)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-08-16 15:40:49 +02:00
Kai Kreuzer f255cf6400 Bump version to 5.0.1-SNAPSHOT 2025-07-21 22:25:06 +02:00
openhab-bot d2b87e6fe6 Preparation for tag creation (Tag name: '5.0.0'). 2025-07-21 07:16:58 +00:00
Holger Friedrich a625d848a4
SAT: Reduce warnings, add suppressions (#4863)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-07-10 19:13:49 +02:00
Holger Friedrich f26c542429
Fix upgradetool dependencies, regression of #4855 (#4871)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-25 22:38:19 +02:00
Holger Friedrich e17577c7c5
Reduce SAT warnings (#4860)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-21 07:10:58 +02:00
Holger Friedrich 6eb7d0c9a6
Clean up POM dependencies (#4855)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-18 20:23:10 +02:00
Wouter Born fcd3a38fd4
Fix binding skeleton pom.xml indentation (#4851)
Newly created bindings should pass the Spotless checks.

Fixes #4811

Signed-off-by: Wouter Born <github@maindrain.net>
2025-06-16 12:00:32 +02:00
Matthew Skinner 2079497ace
Update README.md in skeleton (#4841)
Add an extra line so new bindings do not create as many errors when you compile for the first time with a fresh created binding to help new devs get started quicker.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2025-06-08 08:19:01 +02:00
Matthew Skinner 4b81cb4078
Fix copyright message format error in skeleton (#4842)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
2025-06-08 08:17:20 +02:00
dependabot[bot] 6b49739830
Bump org.apache.maven.plugins:maven-archetype-plugin from 3.3.1 to 3.4.0 (#4822)
Bumps [org.apache.maven.plugins:maven-archetype-plugin](https://github.com/apache/maven-archetype) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.3.1...maven-archetype-3.4.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-archetype-plugin
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 08:46:56 +02:00
dependabot[bot] 4c57f917cf
Bump org.apache.maven.archetype:archetype-packaging from 3.0.1 to 3.4.0 (#4821)
Bumps [org.apache.maven.archetype:archetype-packaging](https://github.com/apache/maven-archetype) from 3.0.1 to 3.4.0.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.0.1...maven-archetype-3.4.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.archetype:archetype-packaging
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-02 08:46:20 +02:00
Jimmy Tanagra ff2cafa690 refactor directory handling
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra d8c07d5601 inform about quoting paths, fix missing userdata dir
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra b55b486360 print the userdata and conf directories
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra 860eaae975 allow unspecified userdata dir when --command is given
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra 482848117e Log the exception message instead of class name
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra 3e0d14fed4 Add Yaml configuration tags list to map upgrader
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Jimmy Tanagra 2515b05ee3 Upgrade Tool: Split upgrade commands into individual classes
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:10:37 +02:00
Holger Friedrich 1c33c03cd4
Upgrade plugins (#4641)
* maven-clean-plugin to 3.4.1
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.1
* maven-compiler-plugin to 3.14.0
https://github.com/apache/maven-compiler-plugin/releases/tag/maven-compiler-plugin-3.14.0
* maven-deploy-plugin to 3.1.4
https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-3.1.4
* maven-intstall-plugin to 3.1.4
https://github.com/apache/maven-install-plugin/releases/tag/maven-install-plugin-3.1.4
* i18n-plugin:
  * upgrade maven-plugin-api to 3.9.6
  * upgrade maven-plugin-annotations to 3.15.1
* remove unused property

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-03 17:46:30 +02:00
jimtng a670ddf2ef
Fix i18n:generate-default-translations on add-on config other than bindings (#4650)
* Fix i18n:generate-default-translations on add-on config other than bindings
* translate all xml config descriptions

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 20:03:37 +02:00
Holger Friedrich 72cf4c1109
Upgrade dependencies (#4663)
* Upgrade jose4j for 0.9.5 to 0.9.6
  https://bitbucket.org/b_c/jose4j/wiki/Release%20Notes
* Upgrade commons-io from 2.17.0 to 2.18.0
  https://commons.apache.org/proper/commons-io/changes-report.html#a2.18.0
* Upgrade commons-net from 3.9.0 to 3.11.1
  https://commons.apache.org/proper/commons-net/changes-report.html#a3.11.1
* upgradetool: Upgrade commons-cli from 1.5.0 to 1.9.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 17:05:58 +01:00
Holger Friedrich f972e95c6b
Upgrade glassfish hk2 to 3.1.1, upgrade units (#4658)
* Upgrade glassfish hk2 from 2.4.0-b34 to 3.1.1
* Upgrade jakarta.inject-api from 2.0.0 to 2.0.1
  https://github.com/jakartaee/inject/releases/tag/2.0.1
* Upgrade jakarta.annotation-api from 2.0.0 to 2.1.1
* Upgrade si.uom:si-units and si-quantity from 2.1 to 2.2, including
  transition from jakarta.annotation-api 1.3.4 to 2.0.0
* Upgrade tech.units.indriya from 2.2 to 2.2.2
* Adapt test to inriya >2.2 (year, yr)
* Resolve bundles
* Upgrade glassfish hk2 osgi-resource-locator to 3.0.0
* Upgrade osgi-resource-locator from 1.0.3 to 3.0.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 17:03:31 +01:00
Wouter Born 6bf59605bd
Use Spotless sortpom plug-in (#4618)
This simplifies the sortpom configuration and also allows for checking and reformatting them using the spotless:check and spotless:apply Maven goals.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-23 19:04:47 +01:00
Holger Friedrich ab870d73df
Reduce SAT warnings (#4567)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-15 16:23:24 +01:00
Holger Friedrich 6764b6d94c Upgrade Xtext/Xtend to 2.37.0
* Upgrade Xtext/Xtend from 2.36.0 to 2.37.0, see release notes:
  https://eclipse.dev/Xtext/releasenotes.html#/releasenotes/2024/11/19/version-2-37-0
  https://eclipse.dev/Xtext/xtend/releasenotes.html#/releasenotes/2024/11/19/version-2-37-0
* Upgrade dependencies
  * ecj from 3.36.0 to 3.39.0
  * gson from 2.10.1 to 2.11.0
  * classgraph to 4.8.176
  * guava from 3.33.0 to 3.33.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-26 15:15:29 +01:00
Wouter Born f00c7700cb
Start license headers with `/*` instead of `/**` (#4544)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 21:48:56 +01:00
Holger Friedrich 98552a4d88
Upgrade plugins (#4537)
* exec-maven-plugin to 3.5.0
https://github.com/mojohaus/exec-maven-plugin/releases
* maven-dependency-plugin to 3.8.1
* maven-plugin-plugin to 3.15.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-07 18:22:30 +01:00
Holger Friedrich 40d079ae80
Java 21 language features (#4535)
* Java 21 language features

* use getFirst and getLast methods
* replace new Locale by Locale.of
* replace Paths.get by Path.of
* use ThreadLocalRandom.current().nextDouble()
* add @Serial annotations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-06 23:22:43 +01:00
Holger Friedrich 1e0b3c2410
Upgrade plugins (#4536)
* sortpom-maven-plugin to 4.0.0 (breaking change)
https://github.com/Ekryd/sortpom?tab=readme-ov-file#news
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-deploy-plugin to 3.1.3
https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-3.1.3
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-plugin-plugin to 3.15.1
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-archetype-plugin to 3.3.1
* maven-dependency-plugin to 3.8.1
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-shade-plugin to 3.6.0
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0
* i18n-maven-plugin to latest OH release 4.3.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-04 09:48:42 +01:00
Wouter Born 979e4a7409
Update license headers to 2025 (#4532)
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 16:40:04 +01:00
Wouter Born db72021460
Update Eclipse files (#4514)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-24 07:02:47 +01:00
Holger Friedrich 8d837f9823
Prepare for OH 5.0.0 (#4496)
* Prepare for OH 5.0.0

* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 18:49:23 +01:00
openhab-bot 0f2e56f39d [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 11:41:19 +00:00
Holger Friedrich 660102e3f9
Upgrade XStream to 1.4.21 (#4457)
* Upgrade XStream from 1.4.20 to 1.4.21, fixes CVE-2024-47072.
  See changelog at https://x-stream.github.io/changes.html#1.4.21

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-18 23:34:06 +01:00
dependabot[bot] c7955e9577
Bump org.apache.maven.plugins:maven-archetype-plugin (#4390)
Bumps [org.apache.maven.plugins:maven-archetype-plugin](https://github.com/apache/maven-archetype) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.2.1...maven-archetype-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-archetype-plugin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 06:50:03 +02:00
Kai Kreuzer 21e605d212
Apply spotless after release, resolve bundles (#4301)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-07-07 23:22:27 +02:00
openhab-bot 07e23eac3c [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 16:05:56 +00:00
Holger Friedrich 873bb53cbc
Upgrade Karaf from 4.4.5 to 4.4.6 (#4181)
* Upgrade Karaf from 4.4.5 to 4.4.6

* Sync runtime dependencies with Karaf 4.4.6, most notably:
  * Jetty 9.4.54.v20240208, addresses CVE-2024-22201
  * Pax Logging 2.2.7
  * Pax Web 8.0.27
  * ASM 9.7
  * BouncyCastle 1.77
* Upgrade xtext to 2.35.0.M1
* Resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-05-20 17:42:04 +02:00
Holger Friedrich 593681a681
Harmonize library versions (#4228)
* Use jdt.annotation 2.2.100 (i18n tool)
* Use gson 2.10.1 (i18n tool, upgrade tool)
* Use logback 1.3.14 (test)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-05-14 20:56:00 +02:00
joerg1985 c3ada84b77
Conditionally use a thread pool backed sequential executor for DSL rules and events (#3890)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-04-29 09:11:56 +02:00
Holger Friedrich c316b07c47
Update plugins (#4197)
* set minimum Maven version to 3.6.3
* build-helper-maven-plugin, 3.4.0 to 3.5.0, see
  https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.5.0
* jvnet maven-jaxb2-plugin, 0.15.2 to 0.15.3
* license-maven-plugin, 4.2 to 4.3
* maven-archetype-plugin, 3.0.1 to 3.2.1
* maven-assembly-plugin, 3.4.2 to 3.7.1, see https://github.com/apache/maven-assembly-plugin/releases
* maven-clean-plugin, 3.3.1 to 3.3.2, see https://github.com/apache/maven-clean-plugin/releases
* maven-dependency-plugin, 3.6.0/3.3.0/3.1.1 to 3.6.1, see
  https://github.com/apache/maven-dependency-plugin/releases/tag/maven-dependency-plugin-3.6.1
* maven-jar-plugin, 3.3.0 to 3.4.1, see https://github.com/apache/maven-jar-plugin/releases
* maven-javadoc-plugin, 3.6.2 to 3.6.3, see https://github.com/apache/maven-javadoc-plugin/releases
* maven-plugin-plugin, 3.11.0 to 3.12.0, see
  https://github.com/apache/maven-plugin-tools/releases/tag/maven-plugin-tools-3.12.0
* maven-shade-pluginm 3.5.2 to 3.5.3
* maven-source-plugin, 3.3.0 to 3.3.1
* maven-surefire-plugin, 3.1.2 to 3.2.5, see https://github.com/apache/maven-surefire/releases
* sortpom-maven-plugin, 3.3.0 to 3.4.1, see https://github.com/Ekryd/sortpom/releases
* spotless-maven-plugin, 2.38.0 to 2.43.0, see
  https://github.com/diffplug/spotless/blob/main/plugin-maven/CHANGES.md
* openhab 18n-maven-plugin, 4.0.2 to 4.1.2

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-27 09:34:39 +02:00
Holger Friedrich 3850599163
Upgrade to Karaf 4.4.5 and Xtext 2.34 (#4133)
* Upgrade to Karaf 4.4.5 and Xtext 2.34

Upgrade Karaf from 4.4.4 to 4.4.5:
* Sync runtime dependencies with Karaf 4.4.5, most notably:
  * Jetty 9.4.53.v20231009
  * JNA 5.14.0
  * Pax Logging 2.2.6
  * Pax Web 8.0.24
  * ASM 9.6
* Resolve itest runbundles

Upgrade Xtext from 2.32 to 2.34
* Sync depencencies, most notably:
  * Guava 33.0.0
  * classgraph 4.8.165 changing provider to io.github.classgraph
* Migrate old Xtext generator xtext.generator to xtext.xtext.generator
  as xtext.generator has been removed from Xtext, affecting
  org.openhab.core.model.lazygen

* resolve runbundles
* Remove org.openhab.core.model.lazygen
  No longer in use since 2017, see eclipse-archived/smarthome#4122.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:41:15 +01:00
Holger Friedrich bf11a92f40
Bump maven-plugin-plugin to 3.11.0 (#4153)
Allow for compiling with Java 21

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-17 09:24:59 +01:00
jimtng fc2d5375b7
Upgrade Tool: Fix NPE (#4128) 2024-03-04 07:19:51 +01:00
Florian Hotze 45f8bff876
Upgrade tool: Add upgrade task for script profile changes (#4117)
* Upgrade tool: Add upgrade task for script profile changes

Refs #4058.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-02 10:41:34 +01:00
Wouter Born 85056d9d7b
Some more code cleanup (#4021)
This cleanup includes:

* Use enhanced for loops
* Use text blocks
* Use Objects.equals
* Fix some typos
* Remove redundant variable initialization
* Remove redundant null checks with instanceof
* Remove redundant thrown Exceptions
* Remove redundant empty String concatenation

Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-04 11:17:55 +01:00
J-N-K fe4cbe546e
Improve YAML model repository (#4024)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-02-04 10:29:09 +01:00
Wouter Born 2babea4c9a
Update license headers to 2024 (#4011)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 21:20:34 +01:00