'eclipse - How to automatically gradle task after changing the git branch

After switching git branch in the current eclipse, After executing the gradle task (compileQuerydsl) from the run configuration menu and refresh gradle, no errors occur.

Please let me know if there is a way to automatically execute the gradle task(compileQuerydsl) after switching the git branch.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source