uschindler commented on pull request #501:
URL: https://github.com/apache/solr/pull/501#issuecomment-1010198918


   I updated it with a heavy hack alarm. Basically I grep through the 
build.gradle file, match on the line with baseVersion and then execute the 
statement.
   
   I also renamed the provider, but basically it was not complicated.
   
   I tested 2 versions:
   
   A `lucene/` checkout of branch_9_0 (all others are not compatible) next to 
my solr checkout:
   ```
   solr$ gradlew :solr:validateConfigFileSanity -Plucene.dev.path=../lucene
   Local Lucene development repository will be used substituting 9.0.0: 
C:\Users\Uwe Schindler\Projects\lucene\lucene
   
   > Configure project :
   Local Lucene development repository will override luceneBaseVersion with: 
9.0.1
   
   BUILD SUCCESSFUL in 3s
   3 actionable tasks: 1 executed, 2 up-to-date
   ```
   
   And I also deployed the 9.0.1 artifacts to local Maven:
   ```
   lucene$ gradlew mavenToLocal
   [...]
   BUILD SUCCESSFUL in 2m 17s
   248 actionable tasks: 177 executed, 71 up-to-date
   
   solr$ gradlew :solr:solrj:test -Plucene.dev.version=9.0.1-SNAPSHOT
   ...works and ps -ef shows correct version...
   ```
   
   This fails (I have a local 8.11.0 in my maven repo), as expected because the 
config files are wrong:
   ```
   solr$ gradlew :solr:validateConfigFileSanity -Plucene.dev.version=8.11.0
   
   > Configure project :
   Lucene version forced by -Plucene.dev.version=8.11.0
   
   > Task :solr:validateConfigFileSanity FAILED
   
   FAILURE: Build failed with an exception.
   
   * Where:
   Script 'C:\Users\Uwe 
Schindler\Projects\lucene\solr\gradle\validation\solr.config-file-sanity.gradle'
 line: 38
   
   * What went wrong:
   Execution failed for task ':solr:validateConfigFileSanity'.
   > Configset does not refer to the correct luceneMatchVersion (8.11): 
C:\Users\Uwe 
Schindler\Projects\lucene\solr\solr\server\solr\configsets\sample_techproducts_configs\conf\solrconfig.xml
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. Run with --scan to get full insights.
   
   * Get more help at https://help.gradle.org
   
   BUILD FAILED in 6s
   3 actionable tasks: 1 executed, 2 up-to-date
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to