This folder contains the deployment files for the Java language server.
You can enable it by:
-
Append the
kubectl apply
command for the Java language server deployment tokubectl-apply-all.sh
.echo kubectl apply --prune -l deploy=xlang-java -f configure/xlang/java/ --recursive >> kubectl-apply-all.sh
-
Adding the following environment variables to the
lsp-proxy
deployment to make it aware of the Java language server's existence.# base/lsp-proxy/lsp-proxy.Deployment.yaml env: - name: LANGSERVER_JAVA value: tcp://xlang-java:2088 - name: LANGSERVER_JAVA_BG value: tcp://xlang-java-bg:2088
-
Apply your changes to
lsp-proxy
and the Java language server to the cluster../kubectl-apply-all.sh
The xlang-java
and xlang-java-bg
deployments support configuring Gradle and Artifactory via the following environment variables:
# configure/xlang/java/xlang-java.Deployment.yaml
# configure/xlang/java/xlang-java-bg.Deployment.yaml
env:
# A comma-delimited list of patterns that selects repository revisions
# for which to execute Gradle scripts,rather than extracting Gradle metadata statically.
#
# **Security note**: these should be restricted to repositories within your own organization.
#
# A percent sign (`%`) can be used to prefix-match. For example, `git://my.internal.host/org1/%
# git://my.internal.host/org2/repoA?%` would select all revisions of all repositories in `org1`
# and all revisions of `repoA` in `org2`.
#
# Note: this field is misnamed, as it matches against the `originalRootURI` LSP initialize parameter,
# rather than the no-longer-used `originalRootPath` parameter.
- name: EXECUTE_GRADLE_ORIGINAL_ROOT_PATHS
value: "git://my.internal.host/org1/%,git://my.internal.host/org2/repoA?%"
# Private artifact repository ID in your build files. If you do not explicitly include the private artifact
# repository, then set this to some unique string (e.g,. `my-repository`).
- name: PRIVATE_ARTIFACT_REPO_ID
value: my-repository
# The URL that corresponds to `PRIVATE_ARTIFACT_REPO_ID`
# (e.g., `http://my.artifactory.local/artifactory/root`).
- name: PRIVATE_ARTIFACT_REPO_URL
value: "http://my.artifactory.local/artifactory/root"
# The username to authenticate to the private Artifactory.
- name: PRIVATE_ARTIFACT_REPO_USERNAME
value: my_username
# The password to authenticate to the private Artifactory.
- name: PRIVATE_ARTIFACT_REPO_PASSWORD
value: hunter2