epugh commented on code in PR #1999:
URL: https://github.com/apache/solr/pull/1999#discussion_r1353301024


##########
solr/modules/analysis-extras/build.gradle:
##########
@@ -19,6 +19,13 @@ apply plugin: 'java-library'
 
 description = 'Additional analysis components'
 
+configurations.all {
+  resolutionStrategy {
+    force 'org.apache.opennlp:opennlp-tools:2.2.0'
+    force 'org.apache.opennlp:opennlp-dl:2.2.0'
+  }
+}
+

Review Comment:
   lots of errors when I took out the `resolutionStrategy`:
   
   ```
   * What went wrong:
   Could not determine the dependencies of task 
':solr:modules:analysis-extras:compileJava'.
   > Could not resolve all task dependencies for configuration 
':solr:modules:analysis-extras:compileClasspath'.
      > Could not resolve org.apache.opennlp:opennlp-tools:2.2.0.
        Required by:
            project :solr:modules:analysis-extras
            project :solr:modules:analysis-extras > 
org.apache.opennlp:opennlp-dl:2.2.0
         > Cannot find a version of 'org.apache.opennlp:opennlp-tools' that 
satisfies the version constraints:
              Dependency path 'org.apache.solr:analysis-extras:10.0.0-SNAPSHOT' 
--> 'org.apache.opennlp:opennlp-tools:2.2.0'
              Constraint path 'org.apache.solr:analysis-extras:10.0.0-SNAPSHOT' 
--> 'org.apache.solr:core:10.0.0-SNAPSHOT' (apiElements) --> 
'org.apache.opennlp:opennlp-tools:1.9.4' because of the following reason: 
Computed from com.palantir.consistent-versions' versions.lock in solr-root
              Constraint path 'org.apache.solr:analysis-extras:10.0.0-SNAPSHOT' 
--> 'org.apache.solr:solrj:10.0.0-SNAPSHOT' (apiElements) --> 
'org.apache.opennlp:opennlp-tools:1.9.4' because of the following reason: 
Computed from com.palantir.consistent-versions' versions.lock in solr-root
              Dependency path 'org.apache.solr:analysis-extras:10.0.0-SNAPSHOT' 
--> 'org.apache.lucene:lucene-analysis-opennlp:9.8.0' (compile) --> 
'org.apache.opennlp:opennlp-tools:1.9.1'
   
   ```
   
   also, feel free to push up changes to this branch ;-)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to