Gradle Build failed with exception for Kotlin Javascript NodeJS RestAPI

Dear Team,

I tried to create a Grade project → Kotlin(JavaScript) by adding dependencies as mentioned below and the gradle build failed with an exception. Attached is my sample project file.

F:\TestRESTAPI>gradlew build
Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in root project ‘TestRESTAPI’.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:compileKotlin2Js’.

Could not resolve all files for configuration ‘:kotlinCompilerClasspath’.
Could not find org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.20-eap-100.
Searched in the following locations:
Required by:
project :

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at

BUILD FAILED in 3s (66.1 KB)

Looks like you are using an eap build of kotlin.
You need to add this to your repositories:

maven { url '' }