badass-runtime-plugin icon indicating copy to clipboard operation
badass-runtime-plugin copied to clipboard

Use of BOMs results in spurious warnings

Open markslater opened this issue 4 years ago • 1 comments

When using a BOM to control dependency versions, the plugin produces spurious warnings about being unable to retrieve artifacts.

For example, given the following build.gradle.kts

plugins {
    id("org.beryx.runtime") version "1.12.6"
}

dependencies {
    implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.5.2"))
}

running gradle jre produces:

> Task :jre
Cannot retrieve artifact org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.5.2

The plugin is trying to retrieve an artifact for the BOM dependency in order to analyse the modules it uses, but this type of dependency, by its nature, doesn't have an artifact.

markslater avatar Sep 20 '21 18:09 markslater

In 1.12.7 these messages are no longer displayed. They will appear only when running Gradle with the --info option.

siordache avatar Oct 19 '21 22:10 siordache