kliew
kliew

Reputation: 3183

IntelliJ sbt project problems

Every time I restart IntelliJ, I have to manually mark the src and resources folder. Is there a folder naming convention that I have to follow for IntelliJ to detect these things? Are these folders supposed to be configured in the sbt file or in IntelliJ?

Upvotes: 0

Views: 238

Answers (3)

kliew
kliew

Reputation: 3183

It is saved in .\.idea\modules\tracker.iml which is configured through the Project Structure -> Modules dialog box. It won't save the settings if you configure it through folder tree

Upvotes: 0

grzesiekw
grzesiekw

Reputation: 497

From sbt documentation

sbt uses the same directory structure as Maven for source files by default (all paths are relative to the base directory)

src/
  main/
    resources/
       <files to include in main jar here>
    scala/
       <main Scala sources>
    java/
       <main Java sources>
  test/
    resources
       <files to include in test jar here>
    scala/
       <test Scala sources>
    java/
       <test Java sources>

If you create your project from IntelliJ select "Create directories for empty content roots automatically" and this structure will be created automatically.

new project

Upvotes: 1

omer727
omer727

Reputation: 7565

This is an intellij definition so it should be defined in your intellij project folder (.idea).

Upvotes: 0

Related Questions