Commit 11e9d6b 1 parent f406288 commit 11e9d6b Copy full SHA for 11e9d6b
File tree 4 files changed +26
-10
lines changed
distributions/openhab/src/main/resources/bin
4 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ init() {
160
160
# Determine the JVM version and check that it is version 17
161
161
checkJvmVersion
162
162
if [ " ${VERSION} " -ne " 17" ]; then
163
- die " JVM must be version 17. JVM version ${VERSION} is unsupported (JAVA_HOME=$JAVA_HOME )"
163
+ if [ " ${VERSION} " -ne " 21" ]; then
164
+ die " JVM must be version 17 or 21. JVM version ${VERSION} is unsupported (JAVA_HOME=$JAVA_HOME )"
165
+ fi
164
166
fi
165
167
166
168
# Check if a root instance is already running
Original file line number Diff line number Diff line change @@ -215,8 +215,10 @@ for /f tokens^=2-5^ delims^=.-_+^" %%j in ('"%JAVA%" -fullversion 2^>^&1') do (
215
215
)
216
216
217
217
if %JAVA_VERSION% NEQ 17 (
218
- call :warn " JVM must be version 17. JVM version %JAVA_VERSION% is unsupported (JAVA_HOME=%JAVA_HOME% )"
219
- goto END
218
+ if %JAVA_VERSION% NEQ 21 (
219
+ call :warn " JVM must be version 17 or 21. JVM version %JAVA_VERSION% is unsupported (JAVA_HOME=%JAVA_HOME% )"
220
+ goto END
221
+ )
220
222
)
221
223
222
224
if %JAVA_VERSION% GTR 8 (
Original file line number Diff line number Diff line change 15
15
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
16
16
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
17
17
<oh .java.version>17</oh .java.version>
18
- <maven .compiler.source>${oh.java.version} </maven .compiler.source>
19
- <maven .compiler.target>${oh.java.version} </maven .compiler.target>
18
+ <maven .compiler.release>${oh.java.version} </maven .compiler.release>
20
19
<bnd .version>7.0.0</bnd .version>
21
20
</properties >
22
21
383
382
</pluginManagement >
384
383
</build >
385
384
</profile >
385
+ <profile >
386
+ <id >j21</id >
387
+ <properties >
388
+ <oh .java.version>21</oh .java.version>
389
+ <maven .compiler.release>${oh.java.version} </maven .compiler.release>
390
+ </properties >
391
+ </profile >
386
392
</profiles >
387
393
388
394
</project >
Original file line number Diff line number Diff line change 64
64
<karaf .version>4.4.5</karaf .version>
65
65
66
66
<oh .java.version>17</oh .java.version>
67
- <maven .compiler.source>${oh.java.version} </maven .compiler.source>
68
- <maven .compiler.target>${oh.java.version} </maven .compiler.target>
67
+ <maven .compiler.release>${oh.java.version} </maven .compiler.release>
69
68
70
- <sat .version>0.15 .0</sat .version>
69
+ <sat .version>0.16 .0</sat .version>
71
70
<spotless .version>2.38.0</spotless .version>
72
71
<!-- Eclipse Java formatter version 4.26+ does not check test files -->
73
72
<spotless .eclipse.version>4.25</spotless .eclipse.version>
111
110
<plugin >
112
111
<groupId >org.apache.maven.plugins</groupId >
113
112
<artifactId >maven-compiler-plugin</artifactId >
114
- <version >3.11 .0</version >
113
+ <version >3.13 .0</version >
115
114
</plugin >
116
115
<plugin >
117
116
<groupId >org.apache.maven.plugins</groupId >
249
248
<configuration >
250
249
<rules >
251
250
<requireJavaVersion >
252
- <version >[17.0,18.0)</version >
251
+ <version >[17.0,18.0),[21.0,22.0) </version >
253
252
</requireJavaVersion >
254
253
</rules >
255
254
</configuration >
319
318
<pax .url.suffix></pax .url.suffix>
320
319
</properties >
321
320
</profile >
321
+ <profile >
322
+ <id >j21</id >
323
+ <properties >
324
+ <oh .java.version>21</oh .java.version>
325
+ <maven .compiler.release>${oh.java.version} </maven .compiler.release>
326
+ </properties >
327
+ </profile >
322
328
</profiles >
323
329
324
330
</project >
You can’t perform that action at this time.
0 commit comments