Closed frankfliu closed 2 years ago
Thank you for raising an issue. I can't tell exactly what is happening here, but I can see that the autobuilder is trying to look for a gradle file in /tmp/semmleTempDir
and since it is not finding one, the build is failing. I am not sure why the autobuilder is getting confused. I'll ask the team supporting the java extractor for more info.
Apologies for the delay. It looks like the problem is that about a week ago, the virtual environment updated the gradle version it uses. In gradle 7.3, the -b
flag was removed, which the autobuilder relies on in this situation.
The team working on the java extractor will fix this issue, but in the meantime, there are two workarounds you can do:
gradlew
, gradle/wrapper/gradle-wrapper.properties
, and gradle/wrapper/gradle-wrapper.jar
exist prior to starting the autobuilder.cc: @smowton
@aeisenberg Thanks for your update, I will just wait for the fix.
One comments about manually install gradle:
@frankfliu should you get impatient, looks like running a simple ./gradlew --no-daemon clean
ahead of the CodeQL init step suffices, as that causes Gradle to download the wrapper jar. After that everything looks normal and the autobuilder does the right thing, including respecting your chosen Gradle version.
@smowton Thanks a lot. adding ./gradlew --no-daemon clean
solves my problem
Fix committed, will roll out with the next code scanning distribution upgrade
Our build failed suddenly:
See: https://github.com/deepjavalibrary/djl/runs/4260031154?check_suite_focus=true
The .yml file can be found: https://github.com/deepjavalibrary/djl/actions/runs/1478679804/workflow
Any idea why it failed to download gradle wrapper?