MediaMarktSaturn / technolinator

GitHub app for SBOM creation using cdxgen and upload to Dependency-Track
Apache License 2.0
15 stars 1 forks source link

Multiple gradle projects in the same repository sharing common modules fail to scan dependencies #168

Open mervyn-mccreight opened 1 year ago

mervyn-mccreight commented 1 year ago

Current behaviour

The SBOM creation sometimes fail with Timeout waiting to lock buildSrc build lock. It is currently in use by another Gradle instance.

Expected behaviour

The SBOM creation works for all specified projects

Comment

I think it has something to do with parallel execution of multiple gradlew runs that operate on the same projects. Gradle does not seem to support something like this.

I can think of two possible solutions: 1) Run the Gradle tasks for each project sequentially 2) Clone the repository n-times (n being the number of defined projects) and run every SBOM creation for each sub-project in a different clone of the repository, so each Gradle instance can have its own lock-files.

heubeck commented 1 year ago

That's not a bug of technolinator, but a gradle issue. basically gradle itself is the issue.

mervyn-mccreight commented 1 year ago

Looking at

it seems that this is indeed a bug in Gradle, but I'd like not to wait for Gradle to fix a bug like this. This seems to appear, disappear, re-appear over and over again.