diff --git a/README.md b/README.md index ec0acbb..0560bb2 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,11 @@ But if statement **already exists** in `*.sbt` files, `sdap.sbt` will not be cre Just click on the icon and wait for the analysis: -![](./docs/gotoAnalyze1.jpg) +settings When the analysis is complete: -![](./docs/dependencyTreeConflicts.jpg) +settings ## For more details @@ -44,6 +44,28 @@ When the analysis is complete: 4. `reload` reload project on-demand. 5. `update` update dependencies on-demand. +## Advanced Setup + +> If you are not sure, you do not need to use these configurations! + +Using configurations, analysis wait times can be dramatically reduced: + +settings + +**File Cache Timeout** + +If the file hasn't been changed for more than `3600` seconds, plugin will execute the `dependencyDot` task, otherwise use the one that already exists, unless using `Refresh`. + +**Organization** + +If you set this value, the `organization` task will not be used to get your project's organization. + +**Disable Scope** + +If you don't need to analyze all scopes, just disable it. + +Configurations are persistent and associated with each intellij project. + ## Troubleshooting issues ### "Caused by: java.io.IOException: Could not create lock for ..." @@ -54,8 +76,7 @@ Caused by: java.io.IOException: Could not create lock for \\.\pipe\sbt-load59647 ``` Using sbt shell to reload or build the project avoids this issue: -![](docs/sbtShellUseForReload.jpg) - +settings ### Can't analyze dependencies between modules? diff --git a/build.sbt b/build.sbt index c0ec2e4..d8580d1 100644 --- a/build.sbt +++ b/build.sbt @@ -47,9 +47,10 @@ lazy val `sbt-dependency-analyzer` = (project in file(".")) // Some("xxx") // or None if password is not set(or via PLUGIN_SIGN_KEY_PWD env var) ), pluginVerifierOptions := pluginVerifierOptions.value.copy( - version = "1.301", // use a specific verifier version - offline = true, // forbid the verifier from reaching the internet - failureLevels = Set(FailureLevel.DEPRECATED_API_USAGES) // only fail if deprecated APIs are used + version = "1.301", // use a specific verifier version + offline = true, // forbid the verifier from reaching the internet + failureLevels = + Set(FailureLevel.INTERNAL_API_USAGES, FailureLevel.COMPATIBILITY_PROBLEMS, FailureLevel.COMPATIBILITY_WARNINGS) ), Global / intellijAttachSources := true, intellijPlugins ++= Seq("com.intellij.java", "com.intellij.java-i18n", "org.intellij.scala").map(_.toPlugin), diff --git a/docs/settings.png b/docs/settings.png new file mode 100644 index 0000000..8e56619 Binary files /dev/null and b/docs/settings.png differ diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 71a04c8..8477555 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -16,8 +16,8 @@ - - + + @@ -26,7 +26,10 @@ description="Force translation for notification"/> - + + @@ -116,6 +119,12 @@ 0.2.0-RC3-231.9392.1 + + +

0.2.0-RC2-231.9392.1