Salesforce is disabling TLS 1.0: see here
CodeScan connects to Salesforce to download the metadata (
ant download) and to run the unit tests. When TLS 1.0 is disabled and your version of Java does not support TLS 1.1, these functionality will fail with an error such as
TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https..
Depending what version of Java you are running CodeScan/Ant analysis with you may have to make some changes:
Works without any modifications. If you do experience any problems please contact support.
When using ant, please add the following to your ANT_OPTS environment variable:
Java 6 is no longer supported by CodeScan. If you are running an older version of CodeScan that still supports Java 6:
Java 6 (1.6) update 111 and higher: Set environment variable
ANT_OPTS="-Dhttps.protocols=TLSv1.1,TLSv1.2" when running the ant command
Java 6 (1.6) before update 111: Does not support TLS 1.0. You can continue to use CodeScan for static analysis only