Commit Graph

54 Commits (eb3f1e92cc02869af0d96ad3a67f0471cc380355)

Author SHA1 Message Date
Wouter Born bb3224a434
Add i18n-maven-plugin to make internationalization easier ()
* Add i18n-maven-plugin to make internationalization easier

This plugin simplifies generating the default translation .properties files from the add-on XML information files.

It reuses the same XStream parsing classes that are used by openhab-core for parsing the binding/config/thing XML files.
It will also keep any existing default translations already present in property files for translations using `@text/`.
Furthermore it will nicely group and sort the translations.

After building this Maven plugin you can use it on add-ons using:

`mvn org.openhab.core.tools:i18n-maven-plugin:3.2.0-SNAPSHOT:generate-default-translations`

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-01 18:52:03 +01:00
Wouter Born 569dddd046
Exclude JUnit 4 from Whiteboard and update imports to JUnit 5 ()
* Exclude JUnit 4 from Whiteboard and update imports to JUnit 5

Excludes the transitive JUnit 4 dependency from the Aries JAX-RS Whiteboard.
The Whiteboard should not have a compile scope dependency on JUnit so I've created https://github.com/apache/aries-jax-rs-whiteboard/pull/135 to fix this.
The wrong scope has resulted in some tests using JUnit 4 imports which is also fixed in this PR.

Signed-off-by: Wouter Born <github@maindrain.net>

* Add commonly used JUnit 4 classes to forbidden packages

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-24 10:35:28 +02:00
Kai Kreuzer 5a667cc868 applied spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:22:02 +02:00
jenkins b8d2077805 [unleash-maven-plugin] Preparation for next development cycle. 2021-06-27 15:50:02 +00:00
Wouter Born 7579aa4d31
Fix more SAT findings and add a few suppressions ()
* Fix more SAT findings and add a few suppressions

Signed-off-by: Wouter Born <github@maindrain.net>
2021-05-05 20:59:59 +02:00
Christoph Weitkamp c80719fefa
Renamed Yahoo to ACME ()
* Rename Yahoo to ACME
* Remove Paper UI references

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-20 22:31:32 +02:00
Christoph Weitkamp 00c822816c
Use SAT release version 0.11.1 ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-04-14 15:15:03 +02:00
Fabian Wolter 23c367f51e
[skeleton] Use real world examples; fix imports ()
* [skeleton] Use real world examples in thing-types.xml

* Added some examples as many new bindings don't make use of context tags or supported bridges.
* Adapt config DTO, i18n. Add refresh param. Cleanup imports.

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2021-04-08 16:21:31 +02:00
Fabian Wolter 949313744d
[skeleton] Change locale placeholder from xx_XX to xx ()
Closes 

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2021-04-02 22:28:23 +02:00
Fabian Wolter 55d2aaf5e8
[skeleton] Remove license header from feature.xml ()
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2021-01-03 19:11:58 +01:00
Wouter Born 774b9d607b
Update license headers to 2021 ()
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-01 16:43:46 +01:00
t2000 f1276c56e2 Fix spotless issue in binding archtype ()
Fixes 

Signed-off-by: Stefan Triller <github@stefantriller.de>
2020-12-28 09:21:58 +01:00
Wouter Born bf14e1077f
Apply Spotless, resolve itest runbundles for 3.1.0 ()
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 10:01:42 +01:00
jenkins 965531696b [unleash-maven-plugin] Preparation for next development cycle. 2020-12-20 22:24:39 +00:00
Kai Kreuzer 89767cee9e
removed deprecated author information from bindings ()
* removed deprecated author information from bindings
* removed author tag from itests

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-24 19:01:50 +01:00
Wouter Born 289ad31afd
Remove Eclipse project files from binding archetype ()
Related to 

Signed-off-by: Wouter Born <github@maindrain.net>
2020-09-21 22:49:13 +02:00
Fabian Wolter 39d6986df7
[skeleton] Make example logging compliant to Coding Guidelines ()
See https://www.openhab.org/docs/developer/guidelines.html#f-logging point 4
Also give an example for the logging severities, as many binding PRs log to info or error.

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
2020-09-15 15:33:30 +02:00
Wouter Born 057604cc2d
Use new Collection API methods ()
Using the new methods there will be less and more readable code.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-08-22 23:04:11 +02:00
Kai Kreuzer b7193a0acb
re-added log action to script scope and cleaned up imported extensions ()
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-08-14 10:06:42 +02:00
Wouter Born 61e17ce39e
Upgrade SAT and Spotless, apply Spotless and enable check ()
* Update SAT and Spotless dependencies
* Apply Spotless and enable check

Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-26 11:15:24 +02:00
Wouter Born ed4b5ff94b
Reconfigure and apply Spotless ()
Adds a configuration for feature.xml files which will be necessary for https://github.com/openhab/static-code-analysis/pull/375

Also applies the results of running Spotless

Signed-off-by: Wouter Born <github@maindrain.net>
2020-04-23 17:17:12 +02:00
Christoph Weitkamp 08da8de5cf Moved "ESH-INF/" folders to "OH-INF/" folders ()
* Moved ESH-INF folders to OH-INF folders

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2020-01-17 15:29:18 +01:00
Wouter Born 18d0a52d02 Switch to Java 11 and drop Java 8 support ()
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 22:32:28 +01:00
Wouter Born 3811cb9560 Update copyright headers to 2020 ()
* Update copyright headers to 2020

Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-01 18:06:34 +01:00
Hilbrand Bouwkamp 9a50b262a3 [archetype] new binding feature should use ohc.version ()
When generating a new binding with the maven archetype it should refer to openhab core via the variable `ohc.version` In the feature.xml.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-12-31 14:33:36 +01:00
Christoph Weitkamp 800956598b Applied spotless formatter ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-30 22:55:19 +01:00
Christoph Weitkamp 59675788e0 Renamed packages
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 12:18:16 +01:00
Wouter Born 92d54ad7c2 Update SAT currentVersionRegex for 3.0.0 ()
Signed-off-by: Wouter Born <github@maindrain.net>
2019-12-15 22:45:23 +01:00
jenkins bc6a380297 [unleash-maven-plugin] Preparation for next development cycle. 2019-12-15 14:55:36 +00:00
Wouter Born f45aebca50 Update to SAT 0.8.0 ()
Signed-off-by: Wouter Born <github@maindrain.net>
2019-11-03 22:35:48 +01:00
Wouter Born 627007d32e Fix InstallServiceCommand SAT findings ()
Suppresses the SystemPrintln SAT findings because this class is a Karaf shell command which prints to the console.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-13 21:52:44 +02:00
Christoph Weitkamp 91617d8af8 Fixed POM XML Shema Definition path ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-12 08:52:16 +02:00
Wouter Born 0bf3e0a9aa Suppress MavenPomderivedInClasspathCheck ()
This SAT check causes 525 false positives.

See: 

Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-08 22:09:37 -07:00
Christoph Weitkamp b3802d565d [infrastructure] bump SAT to 0.7.0 ()
* Bump SAT version; Fixed high priority findings
* Defined path to feature file to avoid warnings

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-29 09:17:35 +02:00
Hilbrand Bouwkamp 78cd43061c [archetype] Fix groovy script to handle certain cases ()
This change handles the following cases:
- New binding that will be the first entry in the list
- New binding that is placed after/between multi project bindings. Like bluetooth and mqtt (reported in )

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-08-15 21:50:03 +02:00
Kai Kreuzer c3af31e663 Removed old IDE setup files as they are superseded by the ones in openhab-distro ()
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-08-01 09:15:00 +02:00
Hilbrand Bouwkamp 5b73b98ded [archetype] Fix for double modules in bundle pom ()
Due to changes in the archetype maven it generated multi module name with tabs prefixed. This caused the module name to be inserted twice because the added module by maven plugin was not removed when the module is moved by the groovy script.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-07-22 13:18:42 +02:00
Christoph Weitkamp 2ace118b92 [archetype] Fixed generation of binding skeletons ()
* Fixed generation of binding skeletons
* [archetype] Include feature.xml in archetype-metadata.xml ()

Also-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-17 08:35:36 +02:00
David Gräff ff70084383 Archetype: karaf feature file location fix ()
Update karaf feature file location

Signed-off-by: David Gräff <david.graeff@web.de>
2019-05-04 17:16:13 +02:00
Markus Rathgeb 5e8c8bb4ec use consistent coordinates also for tools and archetypes ()
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-04 14:15:45 +02:00
Christoph Weitkamp a18e60d7d7 Applied formatter in all files
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-01 22:47:07 +02:00
Hilbrand Bouwkamp bb86507871 [archetype] Fix copyright in archetype example java files ()
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-28 16:56:10 +02:00
Hilbrand Bouwkamp d1e333d8e3 [archetype] .classpath should contain tabs. ()
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-27 22:27:40 +02:00
Hilbrand Bouwkamp ff57db8396 Added maven archetype project to generate binding skeletons ()
This archetype generates bindings for the new bnd based build system.
It also updates specific bundle files that need information about the new binding.

This doesn't yet include generation of test projects.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-26 13:03:28 +02:00
Wouter Born 65bdd2a983 Reenable SAT ()
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-14 19:48:28 +01:00
Henning Treu c4e744bc54 Adopt openHAB Core IDE setup to folder layout & set workspace name ()
Signed-off-by: Henning Treu <henning.treu@googlemail.com>
2019-02-06 12:51:11 +00:00
Markus Rathgeb dc0492e648 Setup launch ()
* fix launch configuration

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 23:15:50 +01:00
Markus Rathgeb a37cceab67 mavenize openHAB and integrate mavenized ESH repository ()
* mavenize openHAB and integrate mavenized ESH repository

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 13:07:31 +01:00
Kai Kreuzer 10acf5cf46 Changed license from EPL v1 to EPL v2 ()
* updated license headers
* added NOTICE files
* moved about.html to NOTICE files
* changed main project license
* updated build.properties
* added files to check to prevent error about missing about.html
* removed license info on p2 feature

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-16 22:59:49 +01:00
Kai Kreuzer eb8abdc894 updated to 2019 ()
* updated to 2019
* updated checkstyle check to 2019

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-07 22:53:19 +01:00