Missing dependency versions in POM when using BOM

Some progress has been made.

I didn’t realize that the components are only created after evaluate, but according to information found in the official Android documentation for using the maven publishing plugin, the trick is to simply wrap the publishing block in a afterEvaluate block.

So now the POM is automatically generated, during publishing:

afterEvaluate {
    publishing {
        repositories {
            mavenLocal()
        }
        publications{
            create<MavenPublication>("release") {
                from(components["release"])
            }
        }
}

After being pointed to the ability to set a version resolving strategy (by @t_broyer) I’m now looking into if that will be the last puzzle piece I need to achieve what I am looking for.