aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJohn St John <johnthesaintjohn@gmail.com>2017-08-08 16:20:46 -0700
committerJohn St John <johnthesaintjohn@gmail.com>2017-08-08 16:20:46 -0700
commit7bffa6ebd0b54b0540df804c956b5238f043b69a (patch)
tree1ae6a7b1ea94aa15b68c02f9c9430a890dae93eb /README.md
parent48b5cfb0d0675258ebfdd104cf1c477289e56b6d (diff)
downloadsbt-settings-7bffa6ebd0b54b0540df804c956b5238f043b69a.tar.gz
sbt-settings-7bffa6ebd0b54b0540df804c956b5238f043b69a.tar.bz2
sbt-settings-7bffa6ebd0b54b0540df804c956b5238f043b69a.zip
Add a doc on how to enable acyclic dependency checking in your project
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6492da0..45a8df5 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,11 @@ There are two different ways to use `sbt-settings` configuration:
Do `sbt reload` after adding a plugin and changing project configuration.
+### Acyclic import checking
+To enable global project-level acyclic dependency checking in your project you need to do two things:
+
+1. Add this to your `build.sbt` file in the global scope: `scalacOptions += "-P:acyclic:force"`
+2. Add this to your `.settings(...)` lines in your project definition in build.sbt: `.settings(acyclicSettings)`
## Reference
@@ -68,4 +73,4 @@ Scala version — 2.11.11, flags configured:
## Examples
-For examples please refer to [Driver Template](https://github.com/drivergroup/***REMOVED***), [Core library](https://github.com/drivergroup/***REMOVED***) or [***REMOVED***](https://github.com/drivergroup/***REMOVED***) projects. \ No newline at end of file
+For examples please refer to [Driver Template](https://github.com/drivergroup/***REMOVED***), [Core library](https://github.com/drivergroup/***REMOVED***) or [***REMOVED***](https://github.com/drivergroup/***REMOVED***) projects.