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:
- Run the Gradle tasks for each project sequentially
- 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.