Skip to content

Commit

Permalink
Fix Gradle plugin marker publication
Browse files Browse the repository at this point in the history
  • Loading branch information
kamildoleglo committed Jul 7, 2021
1 parent 468b49f commit 54b215b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion runners/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ publishing {
register<MavenPublication>("pluginMaven") {
configurePom("Dokka ${project.name}")
artifactId = "dokka-gradle-plugin"
artifact(tasks["javadocJar"])
}

afterEvaluate {
named<MavenPublication>("dokkaGradlePluginPluginMarkerMaven") {
configurePom("Dokka plugin")
}
}
}
}
Expand All @@ -79,7 +86,7 @@ tasks.withType<PublishToMavenRepository>().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")
Expand Down

0 comments on commit 54b215b

Please sign in to comment.