Commit Graph

82 Commits (1613dfd236ea0e9312c29157fc2cd81c41bab763)

Author SHA1 Message Date
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
Wouter Born 67bd0f221f
Make UI configurations translatable (#1246)
Adds the default translation strings so the UI configuration can be translated with Crowdin.

Other fixes/improvements:

* Adds config for this to crowdin.yml
* Adds the i18n Maven plugin dependency so it can be more easily used
* Fixes a few encoding issues
* Uses the ConfigurableService annotation

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-04 18:01:08 +01:00
Kai Kreuzer 9eeb7035e7 Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 08:51:27 +01:00
openhab-bot de8da844e8 [unleash-maven-plugin] Preparation for next development cycle. 2021-12-20 03:48:16 +00:00
Wouter Born af48d85457
Upgrade to Karaf 4.3.4 (#1228)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-18 11:01:04 +01:00
Wouter Born 51a6d6a20a
Update bnd to 6.1.0 (#1216)
For release notes, see:

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

Related to openhab/openhab-core#2583

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-28 21:58:25 +01:00
Wouter Born 5774f29e64
Upgrade SAT to 0.12.0 (#1193)
See the [0.12.0 milestone](https://github.com/openhab/static-code-analysis/milestone/18?closed=1) for all changes in this release.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:35:14 +01:00
Wouter Born 8d2ecaaa27
Configure default timeout of 15 minutes for all testable and lifecycle methods (#1195)
This helps to identify what tests cause builds to get stuck and it will more quickly end such builds.
When builds get stuck in tests, they would keep running for hours and then eventually when a timeout occurs, the job is killed without knowing why it got stuck.
Furhermore precious Jenkins executors will not keep being occupied by such jobs.

See: https://junit.org/junit5/docs/current/user-guide/#writing-tests-declarative-timeouts

It helps with identifying the root cause of issues like openhab/openhab-core#2551

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:30 +01:00
Wouter Born a65fb3792e
Suppress bnd warnings for unused imports/exports (#1196)
Ignores warnings like:

```
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Export-Package instructions: [org.openhab.*]
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Import-Package instructions: [io.swagger.v3.oas.annotations.*,
```

These are safe to ignore because the import/export packages are globally defined and not every bundle imports/exports all these packages.

The `skipIfEmpty` configuration furthermore prevents warnings when the bnd-maven-plugin runs on projects that don't have any code like BOMs.

More important compiler/SAT warnings standout more when there are fewer useless warnings.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-14 17:30:01 +01:00
Wouter Born 48a95faae4
Update bnd to 6.0.0 (#1176)
For release notes, see:

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

Related to openhab/openhab-core#2514

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-23 13:15:03 +02:00
Wouter Born c6bc42e7a9
Upgrade to Karaf 4.3.3 (#1163)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-09-18 16:13:26 +02:00
Wouter Born ffbd450cd0
Apply Spotless (#1123)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-06-28 19:24:46 +02:00
jenkins 2bd5bafd04 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 19:54:38 +00:00
Wouter Born 067f9d8f03
Use SAT 0.11.1 (#1031)
* Use SAT 0.11.1
* Remove HABot config description

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-19 14:53:22 +02:00
Wouter Born 8662580f9f
Upgrade to Karaf 4.3.2 (#1051)
Syncs the karaf.version so the new Maven plugin is used.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-18 07:58:01 +02:00
Kai Kreuzer ab99bf7c2b
Adapted url for Artifactory (#1010)
* Adapted url for Artifactory

Related to https://github.com/openhab/openhab-distro/issues/1256

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-04-20 21:33:46 +02:00
Wouter Born ebd4b04c57
Upgrade Karaf to 4.3.1 (#984)
Related to openhab/openhab-distro#1167

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-02 15:52:06 +02:00
Kai Kreuzer fb26c31786
fixed distribution repo (#853) 2021-03-30 19:11:55 +02:00
Wouter Born aa2cf26d2c
Upgrade lastnpe EEA to 2.3.0 (#978)
For release notes, see:

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

Signed-off-by: Wouter Born <github@maindrain.net>
2021-03-30 19:11:12 +02:00
Wouter Born 4b2159713a
Update bnd to 5.3.0 (#930)
See: https://github.com/bndtools/bnd/wiki/Changes-in-5.3.0

Related to https://github.com/openhab/openhab-core/pull/2217

Signed-off-by: Wouter Born <github@maindrain.net>
2021-02-28 21:34:01 +01:00