You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2019/05/14 21:00:46 UTC

[lucene-solr] 03/03: SOLR-13452: Simplify task dependencies in lucene:core:regenerate by using finalizedBy.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch jira/SOLR-13452_gradle
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 858385fc92b13dc23ba65e28ce6c049a4908a2eb
Author: markrmiller <ma...@apache.org>
AuthorDate: Tue May 14 16:00:14 2019 -0500

    SOLR-13452: Simplify task dependencies in lucene:core:regenerate by using finalizedBy.
---
 lucene/core/build.gradle | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/lucene/core/build.gradle b/lucene/core/build.gradle
index a1636ef..527c9ea 100644
--- a/lucene/core/build.gradle
+++ b/lucene/core/build.gradle
@@ -42,7 +42,7 @@ task fixCRLFAutomaton(type: org.apache.lucene.gradle.FixCRLF) {
   encoding="UTF-8"
 }
 
-fixCRLFAutomaton.dependsOn createLevAutomaton
+createLevAutomaton.finalizedBy fixCRLFAutomaton
 
 task createPackedIntSources {
   
@@ -76,9 +76,9 @@ task fixCRLFPacked(type: org.apache.lucene.gradle.FixCRLF) {
   encoding = "UTF-8"
 }
 
-fixCRLFPacked.dependsOn createPackedIntSources
+createPackedIntSources.finalizedBy fixCRLFPacked
 
-task unzipMoman(){
+task installMoman(){
   doLast {
     ant.unzip(src: "${buildDir}/moman.zip", dest:"${buildDir}/moman", overwrite:"true") {
       ant.cutdirsmapper(dirs: "1")
@@ -91,6 +91,8 @@ task downloadMoman(type: org.apache.lucene.gradle.Get) {
   target = new File("${buildDir}", 'moman.zip')
 }
 
+installMoman.dependsOn downloadMoman
+
 task runjflex(type: org.apache.lucene.gradle.JFlex) {
   source = new File("${projectDir}/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex")
   target = new File("${projectDir}/src/java/org/apache/lucene/analysis/standard")
@@ -102,13 +104,10 @@ task regenerate {
   }
 }
 
-regenerate.dependsOn fixCRLFAutomaton
-regenerate.dependsOn fixCRLFPacked
-
-fixCRLFAutomaton.dependsOn unzipMoman
-unzipMoman.dependsOn downloadMoman
+createLevAutomaton.dependsOn installMoman
 
-createLevAutomaton.mustRunAfter unzipMoman
+regenerate.dependsOn createLevAutomaton
+regenerate.dependsOn createPackedIntSources
 
 regenerate.dependsOn runjflex