This is a small plugin for IDEA that allows to only delegate build actions to Gradle, but not run actions. It's a proof of concept, I'm hoping to get this functionality integrated into IDEA.
This Plugin is based on https://github.com/Abnaxos/idea-undelegate-run. All credits go to that project. It was just updated to support newer IntelliJ versions.
Allows to delegate build actions to Gradle, but keep run actions in
IDEA.
This way, you get the best of both worlds: Gradle builds, IDEA
runs.
Enable and configure the un-delegation in Settings / Build, Execution, Deployment / Build Tools / Un-Delegate Run Actions
.
Tested with Gradle only, but it may also work with Maven
delegation.
There is already an issue to add this functionality: https://youtrack.jetbrains.com/issue/IDEA-176987/Delegate-only-build-to-Gradle
- Class reloading doesn't work. Class reloading actually never works when delegating build/run actions to Gradle, so this isn't a new issue. But the plugin unfortunately doesn't fix it.
./gradlew build
The plugin adds a settings panel in Build, Exection, Deployment / Build Tools / Un-Delegate Run Actions.
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "idea-undelegate-run" > Install
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.