|
|
@ -103,20 +103,18 @@ fun Project.configureMavenPublication( |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Suppress("UnstableApiUsage") |
|
|
|
fun Project.configureGradlePlugin( |
|
|
|
fun Project.configureGradlePlugin( |
|
|
|
publicationConfig: MavenPublicationConfigExtension, |
|
|
|
publicationConfig: MavenPublicationConfigExtension, |
|
|
|
gradlePluginConfig: GradlePluginConfigExtension |
|
|
|
gradlePluginConfig: GradlePluginConfigExtension |
|
|
|
) { |
|
|
|
) { |
|
|
|
// metadata for gradle plugin portal (relates to pluginBundle extension block from com.gradle.plugin-publish) |
|
|
|
|
|
|
|
configureIfExists<PluginBundleExtension> { |
|
|
|
|
|
|
|
vcsUrl = BuildProperties.vcs |
|
|
|
|
|
|
|
website = BuildProperties.website |
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|
// and metadata for gradle plugin portal (relates to pluginBundle extension block from com.gradle.plugin-publish) |
|
|
|
configureIfExists<GradlePluginDevelopmentExtension> { |
|
|
|
configureIfExists<GradlePluginDevelopmentExtension> { |
|
|
|
|
|
|
|
vcsUrl.set(BuildProperties.vcs) |
|
|
|
|
|
|
|
website.set(BuildProperties.website) |
|
|
|
|
|
|
|
description = publicationConfig.description |
|
|
|
|
|
|
|
|
|
|
|
plugins { |
|
|
|
plugins { |
|
|
|
create("gradlePlugin") { |
|
|
|
create("gradlePlugin") { |
|
|
|
id = gradlePluginConfig.pluginId |
|
|
|
id = gradlePluginConfig.pluginId |
|
|
@ -124,6 +122,7 @@ fun Project.configureGradlePlugin( |
|
|
|
description = publicationConfig.description |
|
|
|
description = publicationConfig.description |
|
|
|
implementationClass = gradlePluginConfig.implementationClass |
|
|
|
implementationClass = gradlePluginConfig.implementationClass |
|
|
|
version = project.version |
|
|
|
version = project.version |
|
|
|
|
|
|
|
tags.set(gradlePluginConfig.pluginPortalTags) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|