'Failed to apply plugin [class 'JetGradlePlugin'] Problem with setting up 1.8 Minecraft modding workspace in IntelliJ

Disclaimer I've already fixed the problem, this is just for others that might have the same issue as I couldn't find a fix anywhere else.

The stack trace error was:

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [class 'JetGradlePlugin']

Look at my answer below for how I fixed it.



Solution 1:[1]

In the gradle/wrapper/gradle-wrapper.properties file

Change

distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-bin.zip

to

distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip

Then reload the Gradle changes with the little Elephant button with a blue arrow circle.

Now it should build properly without that error.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 Vasily Kabunov