[java-parent-project] 02/02: Use TLS 1.2

Tom Zeller tzeller at dragonacea.biz
Mon Jun 25 19:08:23 EDT 2018


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch maint-7
in repository java-parent-project.

View the commit online:
http://git.shibboleth.net/view/?p=java-parent-project.git;a=commit;h=9c110dea71aafec5bffe4a7122490665b3f27a7e

commit 9c110dea71aafec5bffe4a7122490665b3f27a7e
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Jun 25 17:17:02 2018 -0500

    Use TLS 1.2
    
    Enable TLSv1.2 when using Java 7 (which defaults to TLSv1.1) as older
    version are no longer supported by Maven Central.
    
    https://central.sonatype.org/articles/2018/May/04/discontinue-support-for-tlsv11-and-below/
    
    TODO We should only set this option when using Java 7 since Java 8
    defaults to TLSv1.2.
---
 bin/upload-nexus-dependencies.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/upload-nexus-dependencies.sh b/bin/upload-nexus-dependencies.sh
index 11357fb..2feb296 100755
--- a/bin/upload-nexus-dependencies.sh
+++ b/bin/upload-nexus-dependencies.sh
@@ -26,6 +26,9 @@ declare -r SHIB_NEXUS_HOME="/home/nexus"
 
 declare YES_TO_ALL=n
 
+# TODO For Java 7 only
+export MAVEN_OPTS=-Dhttps.protocols=TLSv1.2
+
 # Prompts and returns user input.
 function ask {
     # $1 = default y or n 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list