Closed knubonrk closed 2 months ago
CodeQL is guessing a build command that will build the Kotlin code you wish to analyse -- by default this will be ./gradlew testClasses
, or assemble
if the project appears to be an Android project. If you know of a Gradle command that will build your Kotlin without worrying about npm, you can override it by adding -c "./gradlew myTarget
for example.
Thank you for the answer. I might test that out, but as I've noticed after my initial proof of concept of loading the data successfully, the license of the product will block me from doing what I really want to do.
Trying to run the codeql database create on multiproject platform crashes
We have a multi project gradle project, with also a gradle multiplatform project as one of the subprojects. The command I try to build the project with is:
codeql database create --threads=20 --source-root=/Users/knut.erik.borgen/code/tjenesteplattform/ --language=kotlin --overwrite --no-sublanguage-file-coverage -- tjenesteplattform
The build crashes with an exception:
When not including this project it stops failing.
I'm not sure that this is useful information for you, as our project is private...
And the kicker is that we're not interested in the yarn analysis here, as it's only our pure gradle code that we want indexed really, and not any the code that generates javascript from our gradle multiplatform code.
Gradle 8.7
Build time: 2024-03-22 15:52:46 UTC Revision: 650af14d7653aa949fce5e886e685efc9cf97c10
Kotlin: 1.9.22 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.2 (Homebrew 21.0.2) OS: Mac OS X 14.4.1 aarch64