Skip to content

UnicodeData.java has no regeneration task [LUCENE-9901] #10940

@asfimport

Description

@asfimport

When moving build system to gradle, we lost the following groovy script, which is used to regenerate the UnicodeData.java file to be in line with the actually used ICU4J version. The groovy script is still in the repository, but it's no longer used by the build system:
https://github.com/apache/lucene/blob/d5d6dc079395c47cd6d12dcce3bcfdd2c7d9dc63/lucene/analysis/common/src/tools/groovy/generate-unicode-data.groovy

To execute it, we need to convert it to a Gradle task that depends on the same version of ICU4J that we use as analysis/icu dependency Not sure how to do this, maybe it's easy using palantir).

The file should also be hashed and put into the regenerated file hases:
https://github.com/apache/lucene/blob/d5d6dc079395c47cd6d12dcce3bcfdd2c7d9dc63/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/UnicodeProps.java

Old Ant task is here:
https://github.com/apache/lucene-solr/blob/branch_8x/lucene/analysis/common/build.xml#L91-L94


Migrated from LUCENE-9901 by Uwe Schindler (@uschindler), resolved Apr 05 2021
Parent: #10910
Pull requests: #63

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions