Skip to content

Commit

Permalink
Update to openHAB 4.0.x API.
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dywicki <luke@code-house.org>
  • Loading branch information
splatch committed Feb 5, 2024
1 parent af5f34e commit 4f4f3b8
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
16 changes: 10 additions & 6 deletions bundles/org.thing4.core.model.facade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@
</dependency>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
<artifactId>org.openhab.core.thing.xml</artifactId>
</dependency>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
<artifactId>org.openhab.core.config.xml</artifactId>
<artifactId>org.openhab.core.config.core</artifactId>
</dependency>

<dependency>
Expand Down Expand Up @@ -127,6 +123,14 @@
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component</artifactId>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand All @@ -137,7 +141,7 @@
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
<artifactId>org.osgi.service.cm</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ public void modelChanged(String modelName, EventType type) {
logger.info("Model level event {}, model {}", type, modelName);
}
});
repository.addOrRefreshModel("test.things", new ByteArrayInputStream(contents));

thingProvider.activate();

repository.addOrRefreshModel("test.things", new ByteArrayInputStream(contents));
return new ArrayList<>(thingProvider.getAll());
}

Expand Down
4 changes: 2 additions & 2 deletions dependencies/units-si/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<type>pom</type>
</dependency>
<dependency>
<groupId>tec.uom</groupId>
<artifactId>uom-se</artifactId>
<groupId>si.uom</groupId>
<artifactId>si-units</artifactId>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions dependencies/units/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<artifactId>unit-api</artifactId>
</dependency>
<dependency>
<groupId>tec.uom</groupId>
<artifactId>uom-se</artifactId>
<groupId>tech.units</groupId>
<artifactId>indriya</artifactId>
</dependency>
</dependencies>

Expand Down
12 changes: 5 additions & 7 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,24 @@
<description>Parent for Thing4 tools, addons and extensions.</description>

<properties>
<compiler.source>11</compiler.source>
<compiler.target>11</compiler.target>
<compiler.source>17</compiler.source>
<compiler.target>17</compiler.target>

<bom.version>3.0.4</bom.version>
<openhab.version>3.0.4</openhab.version>
<openhab-distro.version>3.0.4</openhab-distro.version>
<bom.version>4.0.4</bom.version>
<openhab.version>4.0.4</openhab.version>
<openhab-distro.version>4.0.4</openhab-distro.version>

<karaf.version>4.4.4</karaf.version>

<slf4j.version>1.7.36</slf4j.version>
<fasterxml-classmate.version>1.5.1</fasterxml-classmate.version>
<osgi.version>6.0.0</osgi.version>

<assertj.version>3.23.1</assertj.version>
<junit-jupiter.version>5.9.1</junit-jupiter.version>
<mockito.version>4.9.0</mockito.version>

<!-- various build related variables -->
<feature.file>${project.basedir}/target/feature/feature.xml</feature.file>
<osgi.version>6.0.0</osgi.version>

<connectorio-testcontainers.version>0.1.0</connectorio-testcontainers.version>
<testcontainers.version>1.17.6</testcontainers.version>
Expand Down
4 changes: 2 additions & 2 deletions tools/thing4-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@

<dependency>
<groupId>org.openhab.core.bundles</groupId>
<artifactId>org.openhab.core.config.xml</artifactId>
<artifactId>org.openhab.core.thing</artifactId>
</dependency>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
<artifactId>org.openhab.core.thing.xml</artifactId>
<artifactId>org.openhab.core.config.core</artifactId>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.component.annotations.Component;
import org.openhab.core.config.core.ConfigDescription;
import org.openhab.core.config.xml.internal.ConfigDescriptionReader;
import org.openhab.core.config.core.xml.internal.ConfigDescriptionReader;
import org.thing4.tools.maven.Cache;

@Component(role = Cache.class, hint = ConfigDescriptorCache.HINT)
Expand Down

0 comments on commit 4f4f3b8

Please sign in to comment.