diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2021-07-07 17:16:00 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2021-07-07 17:16:00 +0200 |
commit | 54b215b4866e6e8fb99e672100a5674fb94ab3d9 (patch) | |
tree | 965bfa5cbe933df6424cca06bcb149d8b1f57edb /runners/gradle-plugin/build.gradle.kts | |
parent | 468b49f0ab833a05c3e520b43a90087407e1d095 (diff) | |
download | dokka-54b215b4866e6e8fb99e672100a5674fb94ab3d9.tar.gz dokka-54b215b4866e6e8fb99e672100a5674fb94ab3d9.tar.bz2 dokka-54b215b4866e6e8fb99e672100a5674fb94ab3d9.zip |
Fix Gradle plugin marker publication
Diffstat (limited to 'runners/gradle-plugin/build.gradle.kts')
-rw-r--r-- | runners/gradle-plugin/build.gradle.kts | 9 |
1 files changed, 8 insertions, 1 deletions
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<MavenPublication>("pluginMaven") { configurePom("Dokka ${project.name}") artifactId = "dokka-gradle-plugin" + artifact(tasks["javadocJar"]) + } + + afterEvaluate { + named<MavenPublication>("dokkaGradlePluginPluginMarkerMaven") { + configurePom("Dokka plugin") + } } } } @@ -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") |