Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Scala SDK to ALL modules in Intellij

We have a Gradle multi-project which we successfully import into Intellij using the in-built import-functionality.

In total, we have about ~150 subprojects with one or more modules, with both Scala and Java-code. For Intellij to work properly with Scala, each module with Scala code needs to have a configured Scala SDK.

Is there any way to configure Intellij to use a Scala SDK on the root project, ALL modules in a project, or similar?

Best Regards, /d

like image 552
dforsl Avatar asked Nov 07 '17 12:11

dforsl


Video Answer


1 Answers

You may do it in Project Structure dialog. Find scala-sdk in Libraries or Global Libraries tab and select Add to modules in the context menu:

enter image description here

like image 131
niktrop Avatar answered Oct 14 '22 08:10

niktrop