Skip to content

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

@mervyn-mccreight

Description

@mervyn-mccreight

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions