what is the 'type' of the `publishing` plugin? e.g...
# gradle
s
what is the 'type' of the
publishing
plugin? e.g.
Copy code
class PublishingPlugin : Plugin<Project> {
    override fun apply(project: Project): Unit = project.run {
        plugins.apply(org.gradle.api.publish.maven.plugins.MavenPublishPlugin::class)
        tasks.named("publishing") {
            // have task here, but not publishing task. what is the publishing task type?
            repositories {
                maven {
                }
            }
        }
    }
}
1
but note that's not the "publishing" task -- I think that task has no type, it's just a grouping task iirc
s
Nice! how'd you find that?
so I can find it easier next time.
yeah I noticed that
publishing
was a group.
but I didn't understand how to take the group and configure it in a plugin.
o
tasks in gradle are typically named similarly to their default project name
e.g.
compileJava
->
JavaCompile
in this case,
publishToXRepository
->
PublishToMavenRepository
s
ha, well I would have thought that would be
publish
lol
not the other versions of it.
well thanks!