Using versionless dependencies causes ModuleVersionNotFoundException
#294
Labels
bug
Something isn't working
ModuleVersionNotFoundException
#294
We use the Micronaut BOM in our Gradle build with the CycloneDX plugin:
settings.gradle.kts
:build.gradle.kts
:plugins { alias(libs.plugins.cyclonedx) } dependencies { kapt(mn.micronaut.inject.java) // ... lots more ... }
When we add the CycloneDX plugin and run
:cyclonedxBom
, we get the following error:Stacktrace here
The relevant portion of the stacktrace:
The dependency listed above (
kapt(mn...)
) is not under our control, since it comes from an external version catalog. Micronaut is avoiding a declared version here because they use a Gradle Platform to enforce versions, so the BOM is only used to declare dependency coordinates.We still want to generate a SBOM, though, with the resolved version of such dependencies.
The text was updated successfully, but these errors were encountered: