rmuir commented on issue #14865:
URL: https://github.com/apache/lucene/issues/14865#issuecomment-3016743040

   First step is to get eclipse plugin to download the correct stuff: this 
isn't happening today because it doesn't actually run on the subprojects.
   
   I add this hack and the `-sources.jar`'s get downloaded to the gradle cache 
as expected. Of course it trashes checkout with unwanted eclipse configuration 
for each subproject as it does this. but at least its downloading.
   
   ```
   --- a/build-tools/build-infra/src/main/groovy/lucene.ide.eclipse.gradle
   +++ b/build-tools/build-infra/src/main/groovy/lucene.ide.eclipse.gradle
   @@ -27,6 +27,11 @@ Provider<String> eclipseJavaVersionOption = 
buildOptions.addOption("eclipse.java
    Provider<String> eclipseErrorsOption = 
buildOptions.addOption("eclipse.errors", "Sets eclipse IDE lint level 
(ignore/warning/error)", "warning")
    
    if (gradle.startParameter.taskNames.contains("eclipse")) {
   +  // force it to download source jars
   +  allprojects {
   +    apply plugin: 'eclipse'
   +  }
   +
      project.pluginManager.apply("java-base")
      project.pluginManager.apply("eclipse")
   ```
   
   I think it would be enough to just extend existing hack to look for 
`-sources.jar` and specify it as `sourcepath=` in the xml to fix this.


-- 
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...@lucene.apache.org

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


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

Reply via email to