diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-01 16:38:56 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-02 12:48:53 +0200 |
commit | 2e02e56818609c683f95ba4f17fa749eb9e1c705 (patch) | |
tree | 53c1ccadcb26f651dec20ed7874db202081fc825 /runners/gradle-plugin/build.gradle.kts | |
parent | badd2d7e4bfad519f31b69ae9c1bea5659f3c59b (diff) | |
download | dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.tar.gz dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.tar.bz2 dokka-2e02e56818609c683f95ba4f17fa749eb9e1c705.zip |
runner:gradle-plugin: Apply `java-gradle-plugin`
Diffstat (limited to 'runners/gradle-plugin/build.gradle.kts')
-rw-r--r-- | runners/gradle-plugin/build.gradle.kts | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/runners/gradle-plugin/build.gradle.kts b/runners/gradle-plugin/build.gradle.kts index d2e9eccd..e0241f67 100644 --- a/runners/gradle-plugin/build.gradle.kts +++ b/runners/gradle-plugin/build.gradle.kts @@ -2,6 +2,7 @@ import org.jetbrains.configureBintrayPublication plugins { id("com.gradle.plugin-publish") + `java-gradle-plugin` } repositories { @@ -26,19 +27,6 @@ dependencies { } } -tasks { - processResources { - val dokka_version: String by project - eachFile { - if (name == "org.jetbrains.dokka.properties") { - filter { line -> - line.replace("<version>", dokka_version) - } - } - } - } -} - val sourceJar by tasks.registering(Jar::class) { archiveClassifier.set("sources") from(sourceSets["main"].allSource) @@ -56,6 +44,15 @@ publishing { configureBintrayPublication("dokkaGradlePlugin") // TODO check if this publishes correctly +gradlePlugin { + plugins { + create("dokkaGradlePlugin") { + id = "org.jetbrains.dokka" + implementationClass = "org.jetbrains.dokka.gradle.DokkaPlugin" + } + } +} + pluginBundle { // TODO check if this publishes correctly website = "https://www.kotlinlang.org/" @@ -64,8 +61,7 @@ pluginBundle { tags = listOf("dokka", "kotlin", "kdoc", "android") plugins { - create("dokkaGradlePlugin") { - id = "org.jetbrains.dokka" + getByName("dokkaGradlePlugin") { displayName = "Dokka plugin" } } @@ -74,4 +70,4 @@ pluginBundle { groupId = "org.jetbrains.dokka" artifactId = "dokka-gradle-plugin" } -}
\ No newline at end of file +} |