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