adoroszlai commented on code in PR #9010:
URL: https://github.com/apache/ozone/pull/9010#discussion_r2332447257


##########
pom.xml:
##########
@@ -2682,13 +2684,29 @@
       </properties>
     </profile>
     <profile>
-      <id>java9-or-later</id>
+      <id>java11-20</id>
       <activation>
-        <jdk>[9,]</jdk>
+        <jdk>[11,20]</jdk>
       </activation>
       <properties>
+        <aspectj.version>${aspectj.java11.version}</aspectj.version>
         <!-- supported since Java 9 -->
         <maven.compiler.release>${javac.version}</maven.compiler.release>
+        <maven.compiler.source>${javac.version}</maven.compiler.source>
+        <maven.compiler.target>${javac.version}</maven.compiler.target>

Review Comment:
   Now these two properties are the same across all JDK version profiles, so 
could be moved to global `properties`.  The profile `java8` can then be removed.



##########
pom.xml:
##########
@@ -2682,13 +2684,29 @@
       </properties>
     </profile>
     <profile>
-      <id>java9-or-later</id>
+      <id>java11-20</id>
       <activation>
-        <jdk>[9,]</jdk>
+        <jdk>[11,20]</jdk>
       </activation>
       <properties>
+        <aspectj.version>${aspectj.java11.version}</aspectj.version>
         <!-- supported since Java 9 -->
         <maven.compiler.release>${javac.version}</maven.compiler.release>

Review Comment:
   nit: We could keep the original profile for setting `maven.compiler.release` 
(which will be the same for all JDK 9+ versions), and add the two new profiles 
(`[11,20]`, `[21,]`) for setting `aspectj.version`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to