File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ limitations under the License. -->
554554 If you need to support specific JDK, create new profile or update this one e.g. for JDK17
555555 set the xml element below to 17. See version range spec for more information:
556556 https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html -->
557- <jdk >[9,)</jdk >
557+ <jdk >[9,18 )</jdk >
558558 </activation >
559559 <properties >
560560 <!-- By default, compile everything to Java 8 (better to set this explicitly rather than use default value).
@@ -565,6 +565,24 @@ limitations under the License. -->
565565 </properties >
566566 </profile >
567567
568+ <profile >
569+ <id >JDK18-and-above</id >
570+ <activation >
571+ <!-- This is a general profile which is activated for JDK9 or newer.
572+ If you need to support specific JDK, create new profile or update this one e.g. for JDK17
573+ set the xml element below to 17. See version range spec for more information:
574+ https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html -->
575+ <jdk >[18,)</jdk >
576+ </activation >
577+ <properties >
578+ <!-- By default, compile everything to Java 8 (better to set this explicitly rather than use default value).
579+ If necessary, change release parameter to greater value.
580+ For instance, set release to 17 in order to enable Java 17 features
581+ and generate bytecode compatible with JVM17 and newer -->
582+ <maven .compiler.release>9</maven .compiler.release>
583+ </properties >
584+ </profile >
585+
568586 <profile >
569587 <id >ossrh</id >
570588 <build >
You can’t perform that action at this time.
0 commit comments