Browse Source

Add tags for Gradle plugin portal publication (#1276)

pull/1277/head
Alexey Tsvetkov 3 years ago committed by GitHub
parent
commit
941875196d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      gradle-plugins/build.gradle.kts
  2. 1
      gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt
  3. 1
      gradle-plugins/compose/build.gradle.kts

3
gradle-plugins/build.gradle.kts

@ -3,7 +3,7 @@ import com.gradle.publish.PluginBundleExtension
plugins { plugins {
// __KOTLIN_COMPOSE_VERSION__ // __KOTLIN_COMPOSE_VERSION__
kotlin("jvm") version "1.5.10" apply false 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 { subprojects {
@ -99,6 +99,7 @@ fun Project.configureGradlePlugin(
vcsUrl = BuildProperties.vcs vcsUrl = BuildProperties.vcs
website = BuildProperties.website website = BuildProperties.website
description = publicationConfig.description description = publicationConfig.description
tags = gradlePluginConfig.pluginPortalTags
} }
// gradle plugin definition (relates to gradlePlugin extension block from java-gradle-plugin) // gradle plugin definition (relates to gradlePlugin extension block from java-gradle-plugin)

1
gradle-plugins/buildSrc/src/main/kotlin/GradlePluginConfigExtension.kt

@ -9,6 +9,7 @@ import org.gradle.api.Project
open class GradlePluginConfigExtension { open class GradlePluginConfigExtension {
lateinit var pluginId: String lateinit var pluginId: String
lateinit var implementationClass: String lateinit var implementationClass: String
var pluginPortalTags: Collection<String> = emptyList()
} }
val Project.gradlePluginConfig: GradlePluginConfigExtension? val Project.gradlePluginConfig: GradlePluginConfigExtension?

1
gradle-plugins/compose/build.gradle.kts

@ -12,6 +12,7 @@ plugins {
gradlePluginConfig { gradlePluginConfig {
pluginId = "org.jetbrains.compose" pluginId = "org.jetbrains.compose"
implementationClass = "org.jetbrains.compose.ComposePlugin" implementationClass = "org.jetbrains.compose.ComposePlugin"
pluginPortalTags = listOf("ui-framework")
} }
mavenPublicationConfig { mavenPublicationConfig {

Loading…
Cancel
Save