How can I customize the pom of the Plugin Marker Artifacts

I got a reply from Marc Philipp!

He wrote a small example hosted here:

The relevant point is to use an “afterEvaluate” callback.

publishing {
    // afterEvaluate is necessary because java-gradle-plugin
    // creates its publications in an afterEvaluate callback
    afterEvaluate {
        publications {
            withType(MavenPublication) {
                // customize all publications here
                pom {
                    inceptionYear = "2019"
                }
            }
            pluginMaven {
                // customize main publications here
                pom {
                    name = "main artifact"
                }
            }
            helloPluginMarkerMaven {
                // customize marker publications here
                pom {
                    name = "marker artifact"
                }
            }
        }
    }
    //...
}