Gradle - Kotlin build error


I am trying to build a gradle multi module project and one of the module has kotlin code.

Getting the below build error.

Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in project ':front50-sql'.

FAILURE: Build failed with an exception.

* What went wrong:

Could not determine the dependencies of task ':front50-sql:compileKotlin'.

> Could not resolve all files for configuration ':front50-sql:kotlinCompilerClasspath'.

> Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.10 because no repositories are defined.

Required by:

project :front50-sql

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

Use '--warning-mode all' to show the individual deprecation warnings.


**BUILD FAILED** in 6s

Added the scan report to,