dforsl
dforsl

Reputation: 203

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

Upvotes: 12

Views: 13936

Answers (1)

niktrop
niktrop

Reputation: 576

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

Upvotes: 21

Related Questions