cstamas commented on code in PR #357:
URL: https://github.com/apache/maven-resolver/pull/357#discussion_r1386915751


##########
maven-resolver-transport-jdk-parent/maven-resolver-transport-jdk-11/src/main/java/org/eclipse/aether/transport/jdk/JdkHttpTransporter.java:
##########
@@ -417,7 +421,14 @@ protected PasswordAuthentication 
getPasswordAuthentication() {
                         });
                     }
 
-                    return builder.build();
+                    HttpClient result = builder.build();
+                    // Only possible in Java21

Review Comment:
   There is already another PR that tackles this area: 
https://github.com/apache/maven-resolver/pull/356
   IMO we should merge that, and then this PR should just raise build time JDK 
requirement to Java 21 and uncomment these lines.
   
   Also, some changes will be needed to customizer, to be able to register hook 
for client close as well (PR #356 adds the customizer)



-- 
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]

Reply via email to