Can I not reference the generated `libs` from `/gr...
# community-support
g
Can I not reference the generated
libs
from
/gradle/libs.versions.toml
in my
plugins {}
blocks? I have a subproject
foo
where I'm trying to do this:
Copy code
plugins {
    id(libs.kotlin.allopen.plugin)
}
That being declared in
libs.versions.toml
as:
Copy code
[versions]
kotlin = "1.9.22"

[libraries]
kotlin-allopen-plugin = { module = "org.jetbrains.kotlin:kotlin-allopen", version.ref = "kotlin" }
I get the error:
Copy code
Type mismatch: inferred type is Provider<MinimalExternalModuleDependency!>! but String was expected
v
You need to declare it in the
[plugins]
section and use
alias(...)
instead of
id(...)
g
Ahh got it, thank you
👌 1