Skip to content

Commit

Permalink
add module for building just the MQTT binding as a single jar, suitab…
Browse files Browse the repository at this point in the history
…le for the marketplace
  • Loading branch information
ccutrer committed Jul 9, 2024
1 parent f5a062a commit 4bc6904
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
38 changes: 38 additions & 0 deletions features/oh-marketplace-binding-mqtt/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.addons.features.karaf</groupId>
<artifactId>org.openhab.addons.reactor.features.karaf</artifactId>
<version>4.3.0-SNAPSHOT</version>
</parent>

<artifactId>org.openhab.addons.features.karaf.oh-marketplace-binding-mqtt</artifactId>
<packaging>feature</packaging>

<name>openHAB Add-ons :: Features :: Karaf :: MQTT Binding</name>
<description>openHAB Add-ons MQTT Binding Feature</description>

<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>karaf-feature-verification</id>
<configuration>
<features>
<feature>oh-marketplace-binding-mqtt</feature>
</features>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
30 changes: 30 additions & 0 deletions features/oh-marketplace-binding-mqtt/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010-2024 Contributors to the openHAB project
See the NOTICE file(s) distributed with this work for additional
information.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
-->
<features name="${project.artifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">

<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>
<!-- aggregated features -->
<feature name="oh-marketplace-binding-mqtt" description="MQTT Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<feature>openhab-transport-mqtt</feature>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt/${project.version}</bundle>
<bundle start-level="81">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.espmilighthub/${project.version}</bundle>
<bundle start-level="81">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.generic/${project.version}</bundle>
<bundle start-level="82">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homeassistant/${project.version}</bundle>
<bundle start-level="82">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.homie/${project.version}</bundle>
<bundle start-level="82">mvn:org.openhab.addons.bundles/org.openhab.binding.mqtt.ruuvigateway/${project.version}</bundle>
</feature>
</features>
1 change: 1 addition & 0 deletions features/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<name>openHAB Add-ons :: Features :: Karaf</name>

<modules>
<module>oh-marketplace-binding-mqtt</module>
<module>openhab-addons</module>
<module>openhab-addons-external</module>
</modules>
Expand Down

0 comments on commit 4bc6904

Please sign in to comment.