Problem Running GWT Application - Could not find method compileGwt()
I've imported a GWT 2.7 project developed in Eclipse originally. The project uses Gradle for it's build. I can run the gradle build without issues. The Gradle build includes the GWT gradle plugin and produces a WAR dir with all of the generated/compiled GWT files and such. I've created a runtime configuration for the project shown below. When . I try to run the project it immediately fails with the message included below as well. IntelliJ seems to be using a Gradle script to run the project. Has anyone seen this before? Due to technical reasons the project uses a very old version of gradle wrapper (3.5.1) I kind of wonder if this has something to do with it. It looks like intellij is using this version of gradle to execute the run.
FAILURE: Build failed with an exception.
* Where:
Initialization script '/private/var/folders/_l/wm0gfb9d3kd22bb8spwy6hr9_gkh1x/T/ijmiscinit.gradle' line: 4
* What went wrong:
Could not find method compileGwt() for arguments [ijmiscinit_5216593dunnwra5e92ebf8wkq$_run_closure1$_closure2@28aa9f71] on build 'UI_Project of type org.gradle.invocation.DefaultGradle.

Please sign in to leave a comment.
See if using a more recent Gradle version helps:
You can also try disabling Gradle build/run delegation and change it to IntelliJ IDEA option: