Apache Solr open-source search software
LUCENE-9454: upgrade hamcrest to version 2.2. (#1738)
Dawid Weiss5375a2d2ada2
diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.propertiesindex 6e90ffd66bc..6c8e51cfa19 100644--- a/lucene/ivy-versions.properties+++ b/lucene/ivy-versions.properties@@ -290,7 +290,7 @@ org.gagravarr.vorbis.java.version = 0.8/org.gagravarr/vorbis-java-core = ${org.gagravarr.vorbis.java.version}/org.gagravarr/vorbis-java-tika = ${org.gagravarr.vorbis.java.version}-/org.hamcrest/hamcrest-core = 1.3+/org.hamcrest/hamcrest = 2.2/org.hsqldb/hsqldb = 2.4.0/org.jdom/jdom2 = 2.0.6diff --git a/lucene/licenses/hamcrest-2.2.jar.sha1 b/lucene/licenses/hamcrest-2.2.jar.sha1new file mode 100644index 00000000000..820b1fb33c6--- /dev/null+++ b/lucene/licenses/hamcrest-2.2.jar.sha1@@ -0,0 +1 @@+1820c0968dba3a11a1b30669bb1f01978a91dedcdiff --git a/lucene/licenses/hamcrest-core-LICENSE-BSD.txt b/lucene/licenses/hamcrest-LICENSE-BSD.txtsimilarity index 100%rename from lucene/licenses/hamcrest-core-LICENSE-BSD.txtrename to lucene/licenses/hamcrest-LICENSE-BSD.txtdiff --git a/lucene/licenses/hamcrest-core-NOTICE.txt b/lucene/licenses/hamcrest-NOTICE.txtsimilarity index 100%rename from lucene/licenses/hamcrest-core-NOTICE.txtrename to lucene/licenses/hamcrest-NOTICE.txtdiff --git a/lucene/licenses/hamcrest-core-1.3.jar.sha1 b/lucene/licenses/hamcrest-core-1.3.jar.sha1deleted file mode 100644index 67add77ada7..00000000000--- a/lucene/licenses/hamcrest-core-1.3.jar.sha1+++ /dev/null@@ -1 +0,0 @@-42a25dc3219429f0e5d060061f71acb49bf010a0diff --git a/lucene/test-framework/build.gradle b/lucene/test-framework/build.gradleindex 4b0cadee4bf..ce9355b8913 100644--- a/lucene/test-framework/build.gradle+++ b/lucene/test-framework/build.gradle@@ -22,9 +22,13 @@ description = 'Framework for testing Lucene-based applications'dependencies {api project(':lucene:core')- api ("com.carrotsearch.randomizedtesting:randomizedtesting-runner")- api ('org.hamcrest:hamcrest-core')- api ("junit:junit")+ api ("com.carrotsearch.randomizedtesting:randomizedtesting-runner", {+ exclude group: "junit"+ })+ api ("junit:junit", {+ exclude group: "org.hamcrest"+ })+ api ('org.hamcrest:hamcrest')implementation project(':lucene:codecs')}diff --git a/lucene/test-framework/ivy.xml b/lucene/test-framework/ivy.xmlindex 9b2932de095..984e4948186 100644--- a/lucene/test-framework/ivy.xml+++ b/lucene/test-framework/ivy.xml@@ -25,7 +25,7 @@<dependencies><dependency org="junit" name="junit" rev="${/junit/junit}" conf="compile"/>- <dependency org="org.hamcrest" name="hamcrest-core" rev="${/org.hamcrest/hamcrest-core}" conf="compile"/>+ <dependency org="org.hamcrest" name="hamcrest" rev="${/org.hamcrest/hamcrest}" conf="compile"/><dependency org="com.carrotsearch.randomizedtesting" name="randomizedtesting-runner" rev="${/com.carrotsearch.randomizedtesting/randomizedtesting-runner}" conf="compile"/><exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>diff --git a/solr/licenses/hamcrest-2.2.jar.sha1 b/solr/licenses/hamcrest-2.2.jar.sha1new file mode 100644index 00000000000..820b1fb33c6--- /dev/null+++ b/solr/licenses/hamcrest-2.2.jar.sha1@@ -0,0 +1 @@+1820c0968dba3a11a1b30669bb1f01978a91dedcdiff --git a/solr/licenses/hamcrest-core-LICENSE-BSD.txt b/solr/licenses/hamcrest-LICENSE-BSD.txtsimilarity index 100%rename from solr/licenses/hamcrest-core-LICENSE-BSD.txtrename to solr/licenses/hamcrest-LICENSE-BSD.txtdiff --git a/solr/licenses/hamcrest-core-NOTICE.txt b/solr/licenses/hamcrest-NOTICE.txtsimilarity index 100%rename from solr/licenses/hamcrest-core-NOTICE.txtrename to solr/licenses/hamcrest-NOTICE.txtdiff --git a/solr/licenses/hamcrest-core-1.3.jar.sha1 b/solr/licenses/hamcrest-core-1.3.jar.sha1deleted file mode 100644index 67add77ada7..00000000000--- a/solr/licenses/hamcrest-core-1.3.jar.sha1+++ /dev/null@@ -1 +0,0 @@-42a25dc3219429f0e5d060061f71acb49bf010a0diff --git a/solr/test-framework/ivy.xml b/solr/test-framework/ivy.xmlindex 174915b3be5..eb1295f09b9 100644--- a/solr/test-framework/ivy.xml+++ b/solr/test-framework/ivy.xml@@ -32,7 +32,7 @@<dependency org="org.apache.ant" name="ant" rev="${/org.apache.ant/ant}" conf="compile" /><dependency org="junit" name="junit" rev="${/junit/junit}" conf="compile;junit4-stdalone" />- <dependency org="org.hamcrest" name="hamcrest-core" rev="${/org.hamcrest/hamcrest-core}" conf="compile;junit4-stdalone" />+ <dependency org="org.hamcrest" name="hamcrest" rev="${/org.hamcrest/hamcrest}" conf="compile;junit4-stdalone" /><dependency org="com.carrotsearch.randomizedtesting" name="junit4-ant" rev="${/com.carrotsearch.randomizedtesting/junit4-ant}" conf="compile;junit4-stdalone" /><dependency org="com.carrotsearch.randomizedtesting" name="randomizedtesting-runner" rev="${/com.carrotsearch.randomizedtesting/randomizedtesting-runner}" conf="compile;junit4-stdalone" /><dependency org="io.opentracing" name="opentracing-mock" rev="${/io.opentracing/opentracing-mock}" conf="compile;junit4-stdalone"/>diff --git a/versions.lock b/versions.lockindex eea9b9cda3d..c6b0adbac3a 100644--- a/versions.lock+++ b/versions.lock@@ -80,7 +80,7 @@ io.sgr:s2-geometry-library-java:1.0.0 (1 constraints: 0305f035)javax.activation:activation:1.1.1 (3 constraints: 1017445c)javax.servlet:javax.servlet-api:3.1.0 (3 constraints: 75209943)joda-time:joda-time:2.9.9 (1 constraints: 8a0972a1)-junit:junit:4.12 (2 constraints: 3e1e6104)+junit:junit:4.12 (1 constraints: db04ff30)net.arnx:jsonic:1.2.7 (2 constraints: db10d4d1)net.hydromatic:eigenbase-properties:1.1.5 (1 constraints: 0905f835)net.jcip:jcip-annotations:1.0 (1 constraints: 560ff165)@@ -189,7 +189,7 @@ org.eclipse.jetty.http2:http2-http-client-transport:9.4.27.v20200227 (1 constraiorg.eclipse.jetty.http2:http2-server:9.4.27.v20200227 (1 constraints: 7b071d7d)org.gagravarr:vorbis-java-core:0.8 (1 constraints: ac041f2c)org.gagravarr:vorbis-java-tika:0.8 (1 constraints: ac041f2c)-org.hamcrest:hamcrest-core:1.3 (2 constraints: 730ad9bf)+org.hamcrest:hamcrest:2.2 (1 constraints: a8041f2c)org.jdom:jdom2:2.0.6 (1 constraints: 0a05fb35)org.jruby:dirgra:0.3 (1 constraints: 1b098b8e)org.jruby:jruby:9.2.6.0 (1 constraints: 490d7d28)diff --git a/versions.props b/versions.propsindex 35f9bbf7982..d76f0bf4ff3 100644--- a/versions.props+++ b/versions.props@@ -89,7 +89,7 @@ org.codehaus.woodstox:woodstox-core-asl=4.4.1org.eclipse.jetty.http2:*=9.4.27.v20200227org.eclipse.jetty:*=9.4.27.v20200227org.gagravarr:*=0.8-org.hamcrest:*=1.3+org.hamcrest:*=2.2org.hsqldb:hsqldb=2.4.0org.jdom:jdom2=2.0.6org.jsoup:jsoup=1.12.1