summaryrefslogtreecommitdiff
path: root/doc/ale-java.txt
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2019-06-19 11:38:23 +0900
committerHoracio Sanson <horacio@allm.net>2019-06-19 11:38:23 +0900
commit40bf6e6b5c2cd8e5e23141254fa9f8bee5e6cd84 (patch)
tree42c404afca7e2818bd3b5ce3cbf33cea9d34404c /doc/ale-java.txt
parent1c71da5624fc46107cda4852add08fe34385dfd9 (diff)
downloadale-40bf6e6b5c2cd8e5e23141254fa9f8bee5e6cd84.zip
Add support for javalsp configuration options.
This MR adds a new configuration variable `g:ale_java_javalsp_config` that allows to configure external dependencies and class paths to the language server. The variable accepts a dictionary similar to the one supported by the [vscode/settings.json](https://github.com/georgewfraser/java-language-server#settings) file. Deprecates: #2561
Diffstat (limited to 'doc/ale-java.txt')
-rw-r--r--doc/ale-java.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/ale-java.txt b/doc/ale-java.txt
index 58acc272..9b5e0c99 100644
--- a/doc/ale-java.txt
+++ b/doc/ale-java.txt
@@ -131,6 +131,33 @@ executable. For example:
let g:ale_java_javalsp_executable=/java-language-server/dist/mac/bin/launcher
<
+g:ale_java_javalsp_config *g:ale_java_javalsp_config*
+ *b:ale_java_javalsp_config*
+ Type: |Dictionary|
+ Default: `{}`
+
+The javalsp linter automatically detects external depenencies for Maven and
+Gradle projects. In case the javalsp fails to detect some of them, you can
+specify them setting a dictionary to |g:ale_java_javalsp_config| variable.
+>
+ let g:ale_java_javalsp_executable =
+ \ {
+ \ 'java': {
+ \ 'externalDependencies': [
+ \ 'junit:junit:jar:4.12:test', " Maven format
+ \ 'junit:junit:4.1' " Gradle format
+ \ ],
+ \ 'classPath': [
+ \ 'lib/some-dependency.jar',
+ \ '/android-sdk/platforms/android-28.jar'
+ \ ]
+ \ }
+ \ }
+
+The Java language server will look for the dependencies you specify in
+`externalDependencies` array in your Maven and Gradle caches ~/.m2 and
+~/.gradle.
+
===============================================================================
eclipselsp *ale-java-eclipselsp*