diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-09 12:30:52 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-07-14 11:41:31 +0200 |
commit | 7a8bdee752c25a9cd09f5859b76463bf44c747db (patch) | |
tree | cddf0cce5b170432f57967c64428dadae3084bc4 /runners/gradle-plugin/build.gradle.kts | |
parent | 7001425367a4db79c6fcdf6b8d0c53508ba50aa7 (diff) | |
download | dokka-7a8bdee752c25a9cd09f5859b76463bf44c747db.tar.gz dokka-7a8bdee752c25a9cd09f5859b76463bf44c747db.tar.bz2 dokka-7a8bdee752c25a9cd09f5859b76463bf44c747db.zip |
PROPOSAL
Diffstat (limited to 'runners/gradle-plugin/build.gradle.kts')
-rw-r--r-- | runners/gradle-plugin/build.gradle.kts | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index 5762fa88..00e3602e 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.configureBintrayPublication +import org.jetbrains.dokkaVersion plugins { - id("com.gradle.plugin-publish") `java-gradle-plugin` } @@ -35,13 +35,20 @@ val sourceJar by tasks.registering(Jar::class) { from(sourceSets["main"].allSource) } -val gradlePluginImplementationClass = "org.jetbrains.dokka.gradle.DokkaPlugin" +gradlePlugin { + plugins { + create("dokkaGradlePlugin") { + id = "org.jetbrains.dokka" + implementationClass = "org.jetbrains.dokka.gradle.DokkaPlugin" + version = dokkaVersion + } + } +} publishing { publications { - register<MavenPublication>("dokkaGradlePlugin") { + maybeCreate<MavenPublication>("pluginMaven").apply { artifactId = "dokka-gradle-plugin" - from(components["java"]) artifact(sourceJar.get()) } @@ -55,31 +62,4 @@ publishing { } -gradlePlugin { - plugins { - create("dokkaGradlePlugin") { - id = "org.jetbrains.dokka" - implementationClass = gradlePluginImplementationClass - } - } -} - -pluginBundle { - website = "https://www.kotlinlang.org/" - vcsUrl = "https://github.com/kotlin/dokka.git" - description = "Dokka, the Kotlin documentation tool" - tags = listOf("dokka", "kotlin", "kdoc", "android") - - plugins { - getByName("dokkaGradlePlugin") { - displayName = "Dokka plugin" - } - } - - mavenCoordinates { - groupId = "org.jetbrains.dokka" - artifactId = "dokka-gradle-plugin" - } -} - -configureBintrayPublication("dokkaGradlePlugin", "pluginMaven", "dokkaGradlePluginPluginMarkerMaven") +configureBintrayPublication("dokkaGradlePluginPluginMarkerMaven", "pluginMaven") |