diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale-java.txt | 27 |
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* |