Easy Way
-
Create a directory (e.g.,
demo_proj) for your project. -
Run
gradle init --type scala-libraryin terminal in the above directory. -
Import the directory as a Gradle project in IntelliJ IDEA. Alternatively, you can add
apply plugin: 'idea'intobuild.gradleand then run the command./gradlew openIdeato …