-
Notifications
You must be signed in to change notification settings - Fork 312
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
Could not fetch model of type 'OrtDependencyTreeModel' using connection to Gradle distribution #6788
Comments
You need to build a custom Docker image which set the |
I set it to 8 and built again, gradle threw incompatibility error
...
Changed the version to 8 batect.yml#LL47C12-L47C13 and tried. Threw below error
|
Yeah, that's now #4694 (which has a solution upcoming in #6782).
Batect is only used to run (function) tests as part of CI. It's not related to the Docker image build for running ORT as a user. |
Since #6782 is mergerd I updated the java version to 8 and tried to build the docker again. I got below snapshots of errored log
|
Sorry, I got confused with Java versions myself: ORT (even before 29d6e76) did not support Java 8 anymore. The lowest Java version we support is 11. |
Hi @sschuberth Thanks. One more question. We have gradle projects which have own devenv (with custom gradle config properties). We have to |
Yet one more clarification on this: We did never support building ORT / the Docker image with Java 8. However, you might be lucky to be able to build with Java 11, and still be able to analyze Java 8 projects. Just give it a try.
You only chance is to run that script manually then before starting the analysis. Besides, I believe it's really bad engineering practice if running such a script is necessary in the first place. Gradle is powerful enough to offer completely self-contained one-step builds. |
This worked! Thanks for the guidance.
Yes indeed! I ll check how to handle this. I'll close this issue |
Hi @sschuberth One more question. How to get inside a docker to execute some commands? I think bash is not there in the docker image built. ? |
Yes it is. As you can see here, the base image is just Ubuntu. But please, do not hijack this issue for further unrelated questions, but start a dedicated discussion for each question that you might have. |
Gradle Project taken for scan: jitpack/gradle-simple/65da6e76bbf3f
ORT container built using f619841 (march 31 2023)
Command used (on windows):
podman run -v .:/project/ -it ort-image-id analyze -i /project -o /project/.ort -m Gradle
Click me
Error log
I suspect this is due to java version incompatibility between ort container (which is 17.0.6) and project's java version 1.8 ( as mentioned in build.gradle#L6 )
But I may be wrong. what will be the solution if version incompatibility is the case?
The text was updated successfully, but these errors were encountered: