Commit Graph

101 Commits (main)

Author SHA1 Message Date
Holger Friedrich 12f24d4f70
Upgrade plugins (#2974) 2025-01-26 16:59:47 +01:00
Holger Friedrich c346bcee92
Upgrade Karaf from 4.4.6 to 4.4.7 (#2798) 2025-01-26 16:06:44 +01:00
Holger Friedrich 438854f482
Fix JavaDoc output directory (#2989)
Regression, fix issue introduced by #2972.
JavaDoc output dir changed from target/site to target/reports.
This will get it back to the known location.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-07 21:48:58 +01:00
Wouter Born 824bbc4711
Start license headers with `/*` instead of `/**` (#2988)
Prevents JavaDoc tooling issues because these tools check comments
starting with `/**`.

Depends on #2987

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 18:49:02 +01:00
Wouter Born fe0be2e322
Upgrade SAT to 0.17.0 (#2987)
For release notes, see:

https://github.com/openhab/static-code-analysis/releases/tag/0.17.0

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 18:43:11 +01:00
Holger Friedrich 4380671878
Upgrade plugins (#2972)
* frontend-maven-plugin to 1.15.1
* sortpom-maven-plugin to 4.0.0 (breaking change)
https://github.com/Ekryd/sortpom?tab=readme-ov-file#news
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-dependency-plugin to 3.8.1
* 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-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin to 3.6.0
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0


leaving out the remaining
```
[INFO]   org.codehaus.mojo:jaxb2-maven-plugin ....................................................... 2.5.0 -> 3.2.0
[INFO]   org.openapitools:openapi-generator-maven-plugin ........................................... 4.3.0 -> 7.10.0
```
for now....

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-04 14:13:30 +01:00
Wouter Born 4610a15ad1
Update license headers to 2025 (#2963)
Updates the license headers to 2025.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 17:09:54 +01:00
Holger Friedrich 9cafa80b60
Remove Java 17 build, switch to 21 (#2925)
Related to  openhab/openhab-core#4483

---------

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 23:21:28 +01:00
Holger Friedrich b54f9d2297
Prepare for OH 5.0.0 (#2924)
* Fix spotless after unleash

Depends on https://github.com/openhab/openhab-core/pull/4496

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 19:41:01 +01:00
openhab-bot f5a4bb3388 [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 17:12:57 +00:00
Wouter Born c1da41f909
Update bnd to 7.1.0 (#2885)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-7.1.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-11-30 21:38:36 +01:00
Wouter Born f5f3a3e837
Upgrade lastnpe EEA to 2.4.0 (#2813)
For release notes, see:

https://github.com/lastnpe/eclipse-null-eea-augments/releases/tag/v2.4.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-20 10:56:22 +02:00
Kai Kreuzer 99ad4ff997
Apply spotless after release (#2653)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-07-08 02:03:57 +02:00
openhab-bot 3ce7fc1507 [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 23:43:10 +00:00
Holger Friedrich d23f407b2a
Upgrade Karaf from 4.4.5 to 4.4.6 (#2547)
Refs https://github.com/openhab/openhab-core/pull/4181.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-05-20 19:45:24 +01:00
Holger Friedrich 10aeb247ae
Update Maven plugins (#2551)
Update nearly all Maven plugins:

* 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
* frontend-maven-plugin, 1.13.4 to 1.15.0, see
https://github.com/eirslett/frontend-maven-plugin/blob/master/CHANGELOG.md
* license-maven-plugin, 4.2 to 4.3
* 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 to 3.6.1, see
https://github.com/apache/maven-dependency-plugin/releases/tag/maven-dependency-plugin-3.6.1
* maven-enforcer-plugin, 3.4.0 to 3.4.1
* maven-jar-plugin, 3.3.0 to 3.4.1, see
https://github.com/apache/maven-jar-plugin/releases
* maven-javadoc-plugin, 3.2.0 to 3.6.3, see
https://github.com/apache/maven-javadoc-plugin/releases
* maven-plugin-plugin, 3.9.0 to 3.12.0, see
https://github.com/apache/maven-plugin-tools/releases/tag/maven-plugin-tools-3.12.0
* maven-site-plugin, 3.12.1 to 4.0.0-M13
* 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
* spotless-maven-plugin, 2.38.0 to 2.43.0, see
https://github.com/diffplug/spotless/blob/main/plugin-maven/CHANGES.md

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-26 10:57:54 +02:00
Holger Friedrich 345e93e363
Bump maven-compiler-plugin to 3.13.0 (#2520)
Avoid ZipException with ejc >3.30.0.

Refs: openhab/openhab-core#4167

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-12 12:36:37 +00:00
Holger Friedrich 730ab97d7b
Allow for compiling with Java 21 (#2517)
* Support Java 17 and 21, default compilation to Java 17 class files
* Add profile "j21" to compile to Java 21 class files
* Bump ecj to 3.36.0
* Upgrade SAT to 0.16.0

Refs:
https://github.com/openhab/openhab-distro/issues/1590

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-03 11:04:31 +02:00
Holger Friedrich 912f8645e7
Upgrade to Karaf 4.4.5 (#2458)
For release notes, see:

https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353604&projectId=12311140

Refs: openhab/openhab-core#4133

---------

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-03-18 15:32:11 +01:00
Wouter Born ef523642a9
Cleanup Java code (#2263)
This cleanup includes:

* Fix deprecations
* Fix JavaDocs
* Remove redundant toString calls
* Remove redundant semicolons
* Simplify boolean expressions
* Use diamond operator
* Use enhanced for loops
* Use instanceof pattern matching
* Use isEmpty instead of 0 comparisons
* Use lambdas
* Use static inner classes
* Use StandardCharsets

Also adds the SA_LOCAL_SELF_COMPARISON suppression similar as used in
other repositories for https://github.com/spotbugs/spotbugs/issues/1992.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-17 19:10:16 +01:00
Wouter Born afdfa01b07
Update license headers to 2024 (#2254)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-01-03 21:17:55 +01:00
Kai Kreuzer 4eda3ac170 Apply spotless after release
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-12-22 23:33:18 +01:00
openhab-bot f4cf9535f3 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 18:16:31 +00:00
Wouter Born fb8e84a635
Update bnd to 7.0.0 (#2111)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-7.0.0

Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-06 18:57:54 +02:00
Wouter Born ec13c3d00c
Upgrade to Karaf 4.4.4 (#2098)
* Add specs features because Pax Web now depends on "asm".

Depends on https://github.com/openhab/openhab-core/pull/3814.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-09-30 10:47:42 +02:00
Wouter Born c1440b4cf1
Use EEAs with maven-compiler-plugin (#2042)
Using this configuration the maven-compiler-plugin will also use the
Eclipse External Annotations. This results in more similar build results
when not using Eclipse like CI, on the CLI and when using other IDEs.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-09-01 22:07:34 +02:00
Wouter Born 30ab36c221
Upgrade Maven and plug-ins (#2044)
* Use Maven 3.9.4 with GitHub Actions CI
* Upgrade Maven plug-ins

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 13:28:01 +02:00
Kai Kreuzer 1a0ea55d9a Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:19:34 +02:00
openhab-bot 871e5ea618 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 22:08:15 +00:00
Wouter Born 8d310b28a9
Upgrade SAT and Spotless (#1969)
This upgrades SAT and Spotless so they can correctly check and format
Java 17 code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-07-18 08:58:26 +02:00
Wouter Born bff05be6f6
Upgrade maven-surefire-plugin to 3.0.0 (#1848)
This fixes deprecation warnings when runnings tests with Maven 3.9.x:

`[WARNING] Parameter 'localRepository' is deprecated core expression;
Avoid use of ArtifactRepository type. If you need access to local
repository, switch to '${repositorySystemSession}' expression and get
LRM from it instead.`

See: https://issues.apache.org/jira/browse/SUREFIRE-2154

Related to openhab/openhab-core#3512

Signed-off-by: Wouter Born <github@maindrain.net>
2023-06-11 22:13:01 +02:00
Wouter Born 785bbe708b
Upgrade to Karaf 4.4.3 (#1600)
* Rework Servlets to use Http Whiteboard annotations in favor of
proprietary `org.openhab.core.io.http.servlet` classes

Depends on openhab/openhab-core#3252

Fixes #1172

Signed-off-by: Wouter Born <github@maindrain.net>
2023-03-01 18:52:49 +01:00
Wouter Born c8c3b8c113
Update license headers to 2023 (#1624)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-01-06 09:51:00 +01:00
Wouter Born 60c7609ec0
Update Jackson version to 2.14.1 (#1616)
This is the version used in the feature provided by openhab-core.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-30 22:47:43 +01:00
Wouter Born fd24db8526
Use HTTPS in pom.xml where possible (#1602)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 21:53:36 +01:00
J-N-K 38f44af1e1
Raise minimum JDK version to 17 (#1588)
* Raise minimum JDK version to 17

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 23:20:09 +01:00
Wouter Born f97323690f
Apply spotless to fix build (#1593)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-19 17:33:45 +01:00
openhab-bot e39ce7f6bf [unleash-maven-plugin] Preparation for next development cycle. 2022-12-19 03:05:38 +00:00
Wouter Born 63e842697a
Update bnd to 6.4.0 (#1568)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.4.0

Related to openhab/openhab-core#3205

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-10 13:31:43 +01:00
Wouter Born e11bf7e219
Karaf feature improvements (#1541)
* Aggregate features like in the openhab-addons repository
* Verify features in bundle projects
* Add basicui.cfg file for Basic UI in openhab-ui-external
* Fix CometVisu rrd4j/jackson dependency version mismatch

Also-by: Sebastian Gerber <git@sgerber.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-05 23:04:41 +01:00
Wouter Born b1affe017b
Move Eclipse m2e configuration to a profile (#1446)
This prevents the following warnings when executing: `mvn i18n:generate-default-translations`

[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 was not found in https://openhab.jfrog.io/openhab/libs-snapshot during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of openhab-snapshot has elapsed or updates are forced

Signed-off-by: Wouter Born <github@maindrain.net>
2022-07-10 15:14:53 +02:00
Kai Kreuzer 74666a102b
Apply spotless (#1437)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:20:54 +02:00
openhab-bot 210ab3058c [unleash-maven-plugin] Preparation for next development cycle. 2022-06-26 23:10:41 +00:00
Wouter Born cbf32cc069
Update bnd to 6.3.0 (#1403)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-6.3.0

Related to openhab/openhab-core#2991

Signed-off-by: Wouter Born <github@maindrain.net>
2022-06-04 11:54:05 +02:00
Wouter Born a8d5c0ced5
Upgrade SAT to 0.13.0 (#1399)
See the [0.13.0](https://github.com/openhab/static-code-analysis/milestone/20?closed=1) milestone for all changes in this release.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-05-29 23:00:13 +02:00
Wouter Born f7721e87bd
Upgrade to Karaf 4.3.7 (#1377)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-04-28 22:01:19 +02:00
Wouter Born 97f18398d3
Add GitHub Actions CI build (#1341)
* Add GHA CI build (Java 11/17)
* Add GHA build status badge
* Update required Java version range used by the enforcer plugin

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 12:25:22 +01:00
J-N-K 4727a76106
bump compiler tooling (#1339)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-12 21:45:37 +01:00
Wouter Born f0e5ca8ae1
Upgrade to Karaf 4.3.6 (#1278)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-16 12:37:03 +01:00
Wouter Born eab99f0bfc
Update license headers to 2022 (#1266)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-08 20:57:16 +01:00