From 54b215b4866e6e8fb99e672100a5674fb94ab3d9 Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Wed, 7 Jul 2021 17:16:00 +0200 Subject: Fix Gradle plugin marker publication --- runners/gradle-plugin/build.gradle.kts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index d44a2a4a..ed053d34 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -71,6 +71,13 @@ publishing { register("pluginMaven") { configurePom("Dokka ${project.name}") artifactId = "dokka-gradle-plugin" + artifact(tasks["javadocJar"]) + } + + afterEvaluate { + named("dokkaGradlePluginPluginMarkerMaven") { + configurePom("Dokka plugin") + } } } } @@ -79,7 +86,7 @@ tasks.withType().configureEach { onlyIf { publication != publishing.publications["dokkaGradlePluginForIntegrationTests"] } } -afterEvaluate { // Workaround for interesting design choice https://github.com/gradle/gradle/blob/c4f935f77377f1783f70ec05381c8182b3ade3ea/subprojects/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/MavenPluginPublishPlugin.java#L49 +afterEvaluate { // Workaround for an interesting design choice https://github.com/gradle/gradle/blob/c4f935f77377f1783f70ec05381c8182b3ade3ea/subprojects/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/MavenPluginPublishPlugin.java#L49 configureBintrayPublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") configureSpacePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") configureSonatypePublicationIfNecessary("pluginMaven", "dokkaGradlePluginPluginMarkerMaven") -- cgit