-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to specify JAVA_VERSION #380
Comments
My understanding is that the appropriate JVM version will be installed thanks to coursier? |
@olafurpg this is something I would love to add to the doc. |
@emirot Thank you for reporting! I opened a PR #381 documenting how to change the default Java version in the Docker container. You can change the java version with
Alternatively, you can create a // lsif-java.json
{
"jvm": "11"
} The |
I've tried running
|
if you are inside a docker image it will be overwritten by https://github.com/sourcegraph/lsif-java/blob/main/bin/lsif-java-docker-script.sh What worked for me build:code_intel:
stage: hook
image: sourcegraph/lsif-java:0.7.2
allow_failure: true # recommended
script:
- echo "{\"jvm\":\"11\"}" > lsif-java.json
- lsif-java index --build-tool "Gradle"
- ls -lah /builds/mygroup/springboot-sandbox/dump.lsif
artifacts:
reports:
lsif: /builds/mygroup/springboot-sandbox/dump.lsif
tags:
- build
but well then it doesn't see it in gitlab ui, not sure why, but the dump.lsif file is created |
My bad, using |
Not sure how to specify that I'm using JAVA 11.
It's taking by default 8
Why it cannot detect that this project is using java 11?
I'm guessing a wrong setting in my side?
I've added in build.gradle
without success
However, If I remove
I don't have the issue above but it is not correct as it is using java8, my project is using java-11.
The text was updated successfully, but these errors were encountered: