I've taken a look at intellij source code and I don't think the default annotation preprocessor location can be easily redirected in "intellij compilation" mode. This personally doesn't bother me much but maybe you're right that the official developer docs shouldn't make people think too hard and assume gradle is used both from command line and the IDE - I honestly don't know... IDEs are a moving target, it's really difficult to keep up with the changes, eh.
D. On Mon, Jun 10, 2024 at 5:07 PM Dawid Weiss <dawid.we...@gmail.com> wrote: > > > If I set IJ build/test to "gradle" and then right click on "core" in >> the Project tab -- it gives an option like "run tests in >> lucene-root.lucene.core" which works. > > > It works because you're running all tests in a module. > > >> At the very top (lucene >> [lucene-root]) of the hierarchy you can right-click and select "run >> all tests", but this fails with "Error running 'All in lucene-root': >> No junit.jar". I thought this had once worked, but maybe I was only >> running tests in core? >> > > It can't work in the current setup - the topmost project isn't a Java > module. Maybe it worked at some point when we had ant-generated intellij > files (which aggregated everything on the same classpath)? I honestly can't > remember. > > Honestly, if you want to run everything, add a gradle configuration and > run it there - it'll be faster than a sequential run from the IDE. > > Dawid >