JBou / idea-undelegate-run

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Un-Delegate Run Actions IDEA Plugin

Build Version Downloads

Template ToDo list

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 / 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


Languages

Language:Kotlin 100.0%