From 7eee4fd1026355a3e420bf02a7578eee6826bc97 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 3 Oct 2020 12:29:14 -0400 Subject: [PATCH] LUCENE-9557: regeneration should use python3, not python2 python2 will change the DFA, but using python3 re-generates the sources as they exist today. plus, we don't want to depend on EOL python2. --- gradle/generation/jflex.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/generation/jflex.gradle b/gradle/generation/jflex.gradle index 57c80697ae3..f6e83510b43 100644 --- a/gradle/generation/jflex.gradle +++ b/gradle/generation/jflex.gradle @@ -149,7 +149,7 @@ configure(project(":lucene:analysis:common")) { def target = file('src/java/org/apache/lucene/analysis/charfilter/HTMLCharacterEntities.jflex') target.withOutputStream { output -> project.exec { - executable = project.externalTool("python2") + executable = project.externalTool("python3") workingDir = target.parentFile standardOutput = output args += [