From 941875196d406593dbb3246a613112e4a01ad7a8 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov <654232+AlexeyTsvetkov@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:25:54 +0300 Subject: [PATCH] Add tags for Gradle plugin portal publication (#1276) --- gradle-plugins/build.gradle.kts | 3 ++- .../buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt | 1 + gradle-plugins/compose/build.gradle.kts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gradle-plugins/build.gradle.kts b/gradle-plugins/build.gradle.kts index ea79ed7130..a98e928d0a 100644 --- a/gradle-plugins/build.gradle.kts +++ b/gradle-plugins/build.gradle.kts @@ -3,7 +3,7 @@ import com.gradle.publish.PluginBundleExtension plugins { // __KOTLIN_COMPOSE_VERSION__ kotlin("jvm") version "1.5.10" apply false - id("com.gradle.plugin-publish") version "0.15.0" apply false + id("com.gradle.plugin-publish") version "0.16.0" apply false } subprojects { @@ -99,6 +99,7 @@ fun Project.configureGradlePlugin( vcsUrl = BuildProperties.vcs website = BuildProperties.website description = publicationConfig.description + tags = gradlePluginConfig.pluginPortalTags } // gradle plugin definition (relates to gradlePlugin extension block from java-gradle-plugin) diff --git a/gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt b/gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt index 275b137479..a99d93fefc 100644 --- a/gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt +++ b/gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt @@ -9,6 +9,7 @@ import org.gradle.api.Project open class GradlePluginConfigExtension { lateinit var pluginId: String lateinit var implementationClass: String + var pluginPortalTags: Collection = emptyList() } val Project.gradlePluginConfig: GradlePluginConfigExtension? diff --git a/gradle-plugins/compose/build.gradle.kts b/gradle-plugins/compose/build.gradle.kts index 951e4be8fb..c413c9a685 100644 --- a/gradle-plugins/compose/build.gradle.kts +++ b/gradle-plugins/compose/build.gradle.kts @@ -12,6 +12,7 @@ plugins { gradlePluginConfig { pluginId = "org.jetbrains.compose" implementationClass = "org.jetbrains.compose.ComposePlugin" + pluginPortalTags = listOf("ui-framework") } mavenPublicationConfig {