From 74fadf3190acddac2d00240f53eaaee89e867516 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 4 Nov 2024 21:31:38 +0100 Subject: [PATCH] Fix invalid publishing of plugins --- .../kotlin/dev/schlaubi/mikbot/gradle/extension/Extensions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle-plugin/src/main/kotlin/dev/schlaubi/mikbot/gradle/extension/Extensions.kt b/gradle-plugin/src/main/kotlin/dev/schlaubi/mikbot/gradle/extension/Extensions.kt index 15743e7a..b8f0b690 100644 --- a/gradle-plugin/src/main/kotlin/dev/schlaubi/mikbot/gradle/extension/Extensions.kt +++ b/gradle-plugin/src/main/kotlin/dev/schlaubi/mikbot/gradle/extension/Extensions.kt @@ -20,6 +20,7 @@ internal val Project.pluginPublishingExtension: BuildRepositoryExtension get() = extensions.findByType() ?: error("Missing MikBot plugin in :path") +@Suppress("ConvertLambdaToReference") fun Project.createExtensions() { extensions.create(pluginExtensionName).apply { if (parent != null) { @@ -52,7 +53,7 @@ fun Project.createExtensions() { } + "Translations" }) requires.convention(MikBotPluginInfo.VERSION) - version.convention(provider(project.version::toString)) + version.convention(provider { project.version.toString() }) } } extensions.create(pluginPublishingExtensionName).apply {