Skip to content

Commit

Permalink
Raise source level to Java 17 (except for model classes)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K committed Jun 2, 2022
1 parent 2ae3137 commit e55e2c8
Show file tree
Hide file tree
Showing 23 changed files with 132 additions and 2 deletions.
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Core</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.item.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Item IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.item.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Items Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.item/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Items</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.lazygen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@

<name>openHAB Core :: Bundles :: Model Lazy Generation</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

</project>
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.lsp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Language Server</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.persistence.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Persistence IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.persistence.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Persistence Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Persistence</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.rule.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Rule IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.rule.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Rules Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.rule/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Rules</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.script.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Script IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.script.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Script Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.script/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Script</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.sitemap.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Sitemap IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.sitemap.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Sitemap Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.sitemap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Sitemap</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.thing.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Thing IDE</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.thing.runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Thing Runtime</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
6 changes: 6 additions & 0 deletions bundles/org.openhab.core.model.thing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

<name>openHAB Core :: Bundles :: Model Thing</name>

<properties>
<maven.compiler.source>${oh.model.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.model.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.model.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
<dependency>
<groupId>org.openhab.core.bundles</groupId>
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<oh.java.version>11</oh.java.version>
<oh.java.version>17</oh.java.version>
<oh.model.java.version>11</oh.model.java.version>
<maven.compiler.source>${oh.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.java.version}</maven.compiler.compilerVersion>
Expand Down Expand Up @@ -547,7 +548,7 @@ Import-Package: \\
<plugin>
<groupId>org.openhab.core.tools</groupId>
<artifactId>i18n-maven-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0-SNAPSHOT</version>
</plugin>

<plugin>
Expand Down
3 changes: 3 additions & 0 deletions tools/i18n-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<maven.plugin.annotations.version>3.6.0</maven.plugin.annotations.version>
<maven.plugin.plugin.version>3.6.4</maven.plugin.plugin.version>
<maven.plugin.compiler.version>3.8.1</maven.plugin.compiler.version>
<maven.compiler.source>${oh.java.version}</maven.compiler.source>
<maven.compiler.target>${oh.java.version}</maven.compiler.target>
<maven.compiler.compilerVersion>${oh.java.version}</maven.compiler.compilerVersion>
</properties>

<dependencies>
Expand Down

0 comments on commit e55e2c8

Please sign in to comment.