Skip to content

Commit

Permalink
Fix invalid publishing of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 4, 2024
1 parent 7411910 commit 74fadf3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<PluginExtension>(pluginExtensionName).apply {
if (parent != null) {
Expand Down Expand Up @@ -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<BuildRepositoryExtension>(pluginPublishingExtensionName).apply {
Expand Down

0 comments on commit 74fadf3

Please sign in to comment.