Apache Lucene open-source search software
LUCENE-6144: Upgrade Ivy to 2.4.0; 'ant ivy-bootstrap' now removes old Ivy jars in ~/.ant/lib/.
Steve Rowe19db1df81a18
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex a69c8176b91..9237eb5beda 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -49,6 +49,11 @@ Optimizations* LUCENE-7994: Use int/int scatter map to gather facet counts when thenumber of hits is small relative to the number of unique facet labels(Dawid Weiss, Robert Muir, Mike McCandless)++Build++* LUCENE-6144: Upgrade Ivy to 2.4.0; 'ant ivy-bootstrap' now removes old Ivy+ jars in ~/.ant/lib/. (Shawn Heisey, Steve Rowe)======================= Lucene 7.1.0 =======================diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 2c70813227f..ae93ab6a6cf 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -80,13 +80,15 @@<!-- Needed in case a module needs the original build, also for compile-tools to be called from a module --><property name="common.build.dir" location="${common.dir}/build"/>- <property name="ivy.bootstrap.version" value="2.3.0" /> <!-- UPGRADE NOTE: update disallowed.ivy.jars regex in ivy-availability-check -->+ <property name="ivy.bootstrap.version" value="2.4.0" /> <!-- UPGRADE NOTE: update disallowed_ivy_jars_regex below -->+ <property name="disallowed_ivy_jars_regex" value="ivy-2\.[0123].*\.jar"/>+<property name="ivy.default.configuration" value="*"/><!-- Running ant targets in parralel may require this set to false because ivy:retrieve tasks may race with resolve --><property name="ivy.sync" value="true"/><property name="ivy.resolution-cache.dir" location="${common.build.dir}/ivy-resolution-cache"/>- <property name="ivy.lock-strategy" value="artifact-lock"/>+ <property name="ivy.lock-strategy" value="artifact-lock-nio"/><property name="local.caches" location="${common.dir}/../.caches" /><property name="tests.cachedir" location="${local.caches}/test-stats" />@@ -413,12 +415,12 @@<property name="ivy_bootstrap_url1" value="http://repo1.maven.org/maven2"/><!-- you might need to tweak this from china so it works --><property name="ivy_bootstrap_url2" value="http://uk.maven.org/maven2"/>- <property name="ivy_checksum_sha1" value="c5ebf1c253ad4959a29f4acfe696ee48cdd9f473"/>+ <property name="ivy_checksum_sha1" value="5abe4c24bbe992a9ac07ca563d5bd3e8d569e9ed"/><target name="ivy-availability-check" unless="ivy.available"><path id="disallowed.ivy.jars"><fileset dir="${ivy_install_path}">- <filename regex="ivy-2\.[012].*\.jar"/> <!-- TODO: Update this regex to disallow Ivy versions -->+ <filename regex="${disallowed_ivy_jars_regex}"/></fileset></path><loadresource property="disallowed.ivy.jars.list">@@ -482,19 +484,20 @@<fail>Ivy is not available</fail></target>- <target name="ivy-bootstrap" description="Download and install Ivy in the users ant lib dir" depends="ivy-bootstrap1,ivy-bootstrap2,ivy-checksum"/>+ <target name="ivy-bootstrap" description="Download and install Ivy in the users ant lib dir"+ depends="-ivy-bootstrap1,-ivy-bootstrap2,-ivy-checksum,-ivy-remove-old-versions"/><!-- try to download from repo1.maven.org -->- <target name="ivy-bootstrap1">+ <target name="-ivy-bootstrap1"><ivy-download src="${ivy_bootstrap_url1}" dest="${ivy_install_path}"/><available file="${ivy_install_path}/ivy-${ivy.bootstrap.version}.jar" property="ivy.bootstrap1.success" /></target>- <target name="ivy-bootstrap2" unless="ivy.bootstrap1.success">+ <target name="-ivy-bootstrap2" unless="ivy.bootstrap1.success"><ivy-download src="${ivy_bootstrap_url2}" dest="${ivy_install_path}"/></target>- <target name="ivy-checksum">+ <target name="-ivy-checksum"><checksum file="${ivy_install_path}/ivy-${ivy.bootstrap.version}.jar"property="${ivy_checksum_sha1}"algorithm="SHA"@@ -505,6 +508,14 @@</condition></fail></target>++ <target name="-ivy-remove-old-versions">+ <delete verbose="true" failonerror="true">+ <fileset dir="${ivy_install_path}">+ <filename regex="${disallowed_ivy_jars_regex}"/>+ </fileset>+ </delete>+ </target><macrodef name="ivy-download"><attribute name="src"/>diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.propertiesindex b06adac5d3c..2478f85be69 100644--- a/lucene/ivy-versions.properties+++ b/lucene/ivy-versions.properties@@ -153,7 +153,7 @@ org.apache.hadoop.version = 2.7.4/org.apache.httpcomponents/httpcore = 4.4.6/org.apache.httpcomponents/httpmime = 4.5.3-/org.apache.ivy/ivy = 2.3.0+/org.apache.ivy/ivy = 2.4.0org.apache.james.apache.mime4j.version = 0.7.2/org.apache.james/apache-mime4j-core = ${org.apache.james.apache.mime4j.version}diff --git a/lucene/licenses/ivy-2.3.0.jar.sha1 b/lucene/licenses/ivy-2.3.0.jar.sha1deleted file mode 100644index f4b036fe046..00000000000--- a/lucene/licenses/ivy-2.3.0.jar.sha1+++ /dev/null@@ -1 +0,0 @@-c5ebf1c253ad4959a29f4acfe696ee48cdd9f473diff --git a/lucene/licenses/ivy-2.4.0.jar.sha1 b/lucene/licenses/ivy-2.4.0.jar.sha1new file mode 100644index 00000000000..3863b25583f--- /dev/null+++ b/lucene/licenses/ivy-2.4.0.jar.sha1@@ -0,0 +1 @@+5abe4c24bbe992a9ac07ca563d5bd3e8d569e9ed