This message was deleted.
# community-support
s
This message was deleted.
c
What does it mean to “build a subproject on its own”? Is there a minimum reproducer available? the version catalog is semantically equivalent to directly specifying the version - no differences there.
v
pluginManagement { plugin { ... } }
is simply longer available to define a default version for a plugin to be used in the build. Version catalogs feature (doesn't matter whether used from settings script or with TOML file to define the versions) is just a newer feature that is available now and that I personally would prefer. But either way nothing should use the "latest version in the world" unless you do something really non-standard and strange. As Chris said, you probably need to provide an MCVE to show what you mean.
g
v
Not sure how your MCVE is related to your question. The error you show in the readme is because you didn't do
libs.plugins.dokka
and so on, but
libs.kotlin.dokka
.
🎉 1
🙏🏻 1
🙌🏻 1
c
Yes. Correcting the plugins block to the below allows the project to be successfully executed.
Copy code
plugins {
    `java-library`

    alias(libs.plugins.m.versions)
    alias(libs.plugins.dokka)
    alias(libs.plugins.kotlin.jvm)
}
🙏🏻 1
🙌🏻 1
🎉 1
g
Copy code
@Suppress("DSL_SCOPE_VIOLATION")
    alias(libs.plugins.m.versions)
Seems to suppress the IDE error.
👍 1
v
Yes, or you just ignore it, or install the little work-around plugin mentioned in https://youtrack.jetbrains.com/issue/KTIJ-19370 🙂