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 f897c46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@
<exists>model.profile-marker</exists>
</file>
</activation>
<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.bom</groupId>
Expand Down
3 changes: 2 additions & 1 deletion 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

0 comments on commit f897c46

Please sign in to comment.