Repository: ant-ivy Updated Branches: refs/heads/master 55d9cb659 -> 43ddccb85
Fix build failures of tutorials when running against Java 7 Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/43ddccb8 Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/43ddccb8 Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/43ddccb8 Branch: refs/heads/master Commit: 43ddccb859b94c79350ece7520af4c991c2bb5e6 Parents: 55d9cb6 Author: Jaikiran Pai <[email protected]> Authored: Wed Jul 25 10:16:10 2018 +0530 Committer: Jaikiran Pai <[email protected]> Committed: Wed Jul 25 10:16:10 2018 +0530 ---------------------------------------------------------------------- build-release.xml | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/43ddccb8/build-release.xml ---------------------------------------------------------------------- diff --git a/build-release.xml b/build-release.xml index 82c6160..b8621e2 100644 --- a/build-release.xml +++ b/build-release.xml @@ -24,6 +24,12 @@ <import file="build.xml"/> + <!-- Java 7 runs into TLS protocol issues when dealing with repositories + that no longer support older protocols --> + <condition property="java.sysprop.https.protocols" value="" else="TLSv1.2"> + <javaversion atleast="1.8"/> + </condition> + <macrodef name="run-tutorial"> <attribute name="antfile"/> <attribute name="output"/> @@ -58,6 +64,9 @@ <sysproperty key="ivy.local.default.root" value="${tutorial.local-repo}"/> <sysproperty key="ivy.cache.ttl.default" value="1s"/> <sysproperty key="skip.download" value="true"/> + <!-- We select specific HTTPS protocols, based on the Java version we are running + on --> + <sysproperty key="https.protocols" value="${java.sysprop.https.protocols}"/> <arg line="-f @{antfile}"/> <arg line="@{target}"/> </java>
