diff options
author | John St. John <jstjohn@users.noreply.github.com> | 2017-08-08 16:42:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-08 16:42:47 -0700 |
commit | 901724940530b5b5a863658ef3eea0a9b252e38c (patch) | |
tree | 1ae6a7b1ea94aa15b68c02f9c9430a890dae93eb | |
parent | 48b5cfb0d0675258ebfdd104cf1c477289e56b6d (diff) | |
parent | 7bffa6ebd0b54b0540df804c956b5238f043b69a (diff) | |
download | sbt-settings-901724940530b5b5a863658ef3eea0a9b252e38c.tar.gz sbt-settings-901724940530b5b5a863658ef3eea0a9b252e38c.tar.bz2 sbt-settings-901724940530b5b5a863658ef3eea0a9b252e38c.zip |
Merge pull request #22 from drivergroup/jstjohn/document_acyclic
Add a doc on how to enable acyclic dependency checking in your project
-rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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. |