IntelliJ and Gradle Build, Java Scala Project. In IntelliJ, import project as a gradle project
Error/Warning
Unable to build Scala project configuration
Details: org.gradle.api.GradleException: Cannot infer Scala class path because no Scala library Jar was found. Does root project declare dependency to scala-library? Searched classpath: file collection
Solution
dependencies { compile 'org.scala-lang:scala-library:2.13.1'}
Reference
https://www.garysieling.com/blog/fixing-gradle-error-cannot-infer-scala-class-path-because-no-scala-library-jar-was-found-on-class-path-configuration-compile/
No comments:
Post a Comment