![]() Both of these jars provide a provider-configuration file in META-INF/services/org.apache.lucene.codecs.Codec registering their respective implementations as providers of this codec. The proper way to merge these files is to concatenate them, but the normal Buck build process would otherwise choose one arbitrarily. Add a new custom rule merge_maven_jars to merge multiple Maven jars together using a simple Python script. The script concatenates all the entries in two zip files, preferring the entry found in the first file on the command line, which is still arbitrary but at least deterministic. It specially handles files in the META-INF/services directory by concatenating them. Use this new rule to merge the old :core and :backward-codecs rules into a single :core-and-backward-codecs rule. Change-Id: I42fd1a130e42cb0eebf7bee61cfdf8545397cd09 |
||
---|---|---|
.. | ||
src/main/java/com/google/gerrit/lucene | ||
BUCK |