[ https://issues.apache.org/jira/browse/SOLR-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16914216#comment-16914216 ]
Tomoko Uchida edited comment on SOLR-13452 at 8/23/19 12:40 PM: ---------------------------------------------------------------- When I looked into inter-module dependency problems on IDEA, I noticed that it seems difficult to manage to keep our current IDEA module structure with Gradle IDEA plugin. I discarded current structure (defined in {{.idea/modules.xml}}) and instead made use of the default structure generated by the Gradle plugin. (Gradle IDEA plugin works well for me and I think it's much better than maintaining ".iml" files for all Lucene/Solr modules on our own.) By this change IDEA users will see: 1. module names have been changed (e.g., "backward-codecs" is now "lucene-backward-codecs", "extraction" is "solr-contrib-extraction", and so on) 2. main / test modules have been merged into one module (e.g., "lucene-core" and "lucene-core-tests" are now packed into "lucene-core", "solr-core" and "solr-core-tests" are packed into "solr-core", and so on). And you might notice 3. IDEA complains some circular dependencies those haven't been reported so far (they have been cleverly suppressed by customized module structure), but daily development shouldn't be affected by this. I think unused IDEA configuration files can be removed when we remove all other Ant related files. For me IDEA setup is 90% ready now... still not perfect, some fixes/improvements are needed. was (Author: tomoko uchida): When I looked into inter-module dependency problems on IDEA, I noticed that it seems difficult to manage to keep our current IDEA module structure with Gradle IDEA plugin. I discarded current IDEA module structure (defined in {{.idea/modules.xml}}) and instead made use of the default structure generated by the Gradle plugin. (Gradle IDEA plugin works well for me and I think it's much better than maintaining ".iml" files for all Lucene/Solr modules.) By this change IDEA users will see that 1. module names have been changed (e.g., "backward-codecs" is now "lucene-backward-codecs", "extraction" is "solr-contrib-extraction", and so on) 2. separated main / test modules have been merged into one module (e.g., "lucene-core" and "lucene-core-tests" are now packed into "lucene-core", "solr-core" and "solr-core-tests" are packed into "solr-core", and so on). And you might notice 3. IDEA complains some circular dependency problems those haven't been reported so far, but daily development shouldn't be affected by this. For me IDEA setup is 90% ready now... still not perfect, some fixes/improvements are needed. > Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle. > ------------------------------------------------------------------------- > > Key: SOLR-13452 > URL: https://issues.apache.org/jira/browse/SOLR-13452 > Project: Solr > Issue Type: Improvement > Components: Build > Reporter: Mark Miller > Assignee: Mark Miller > Priority: Major > Fix For: master (9.0) > > Attachments: gradle-build.pdf > > Time Spent: 10m > Remaining Estimate: 0h > > I took some things from the great work that Dat did in > [https://github.com/apache/lucene-solr/tree/jira/gradle] and took the ball a > little further. > > When working with gradle in sub modules directly, I recommend > [https://github.com/dougborg/gdub] > This gradle branch uses the following plugin for version locking, version > configuration and version consistency across modules: > [https://github.com/palantir/gradle-consistent-versions] > > https://github.com/apache/lucene-solr/tree/jira/SOLR-13452_gradle_5 -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org