summaryrefslogtreecommitdiff
path: root/src/intellij/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/intellij/README.md')
-rw-r--r--src/intellij/README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/intellij/README.md b/src/intellij/README.md
index c311afda9c..dcad699d43 100644
--- a/src/intellij/README.md
+++ b/src/intellij/README.md
@@ -10,7 +10,7 @@ To create the IntelliJ project files:
- Run `sbt intellij`
- Open `src/intellij/scala.ipr` in IntelliJ
- - In `File` → `Project Structure` → `Project` → `Project SDK`, create an SDK entry named "1.6" containing the Java 1.6 SDK
+ - In `File` → `Project Structure` → `Project` → `Project SDK`, create an SDK entry named "1.8" containing the Java 1.8 SDK
The project files are created by as copies of the `.SAMPLE` files, which are under version control.
The actual IntelliJ project files are in `.gitignore` so that local changes are ignored.
@@ -24,6 +24,15 @@ This is necessary whenever the dependencies in the sbt build change, for example
Note that this command only patches the dependency lists, all other settings in the IntelliJ project definition are unchanged.
To overwrite the project definition files by copying the `.SAMPLE` files again run `sbt intellijFromSample`.
+## Switching Branches
+
+The 2.12.x branch contains IntelliJ module files for `actors` and `forkjoin` even though these modules only exist in 2.11.x.
+This allows using the same IntelliJ project files when switching to the 2.11.x branch (without causing any issues while working on 2.12.x).
+
+When switching between 2.11.x and 2.12.x, make sure to run `sbt intellij`.
+Note that the `Project SDK` is not updated in this process.
+If you want to use the Java 1.6 SDK while working on 2.11.x you need to change it manually (`File` → `Project Structure` → `Project` → `Project SDK`).
+
## Usage
Compiling, running, JUnit tests and debugging should all work.