How to publish JPS locally to consume it in Intellij Idea

You can use installJps task or run:

cd ..
./gradlew installJps && \
echo Finished successfully