Skip to content

Small workaround to allow delegating build, but not run actions to Gradle in IDEA

Notifications You must be signed in to change notification settings

JBou/idea-undelegate-run

Repository files navigation

Un-Delegate Run Actions IDEA Plugin

Build Version Downloads

Description

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

Known Issues

  • 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.

Build

./gradlew build

Usage

The plugin adds a settings panel in Build, Exection, Deployment / Build Tools / Un-Delegate Run Actions.

Installation

  • 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.

License

WTFPL

About

Small workaround to allow delegating build, but not run actions to Gradle in IDEA

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages