Question: Suppose I have this: ```buildscript { ...
# community-support
k
Question: Suppose I have this:
Copy code
buildscript {
  dependencies {
    classpath(platform(libs.my.platform))
  }
}

plugins {
  alias(libs.plugins.my.plugin)
}
and this version catalog:
Copy code
[libraries]
my-platform = "foo:bar:1.0"

[plugins]
my-plugin = { id = "my-plugin" } # version from my-platform
I'm getting a
plugin dependency must include a version number for this source
error; does this mean that the plugin marker artifact needs to also be part of the platform?
v
Probably, yes. The maker artifact is the way to translate the plugin I'd from the plugins block to an actual code artifact. So you have to provide a version for the marker artifact somehow
k
Now if only I can convert a
plugins
version catalog entry (ie.
PluginDependency
) to a
MinimalExternalModuleDependency
for its marker artifact.
v
That's https://github.com/gradle/gradle/issues/17963 which includes work arounds