This message was deleted.
# plugin-development
s
This message was deleted.
v
In
settings.gradle
/
settings.gradle.kts
you do not call
Project#files
, that is physically impossible, because you have no project available, you are in the settings script.
In Groovy DSL there is probably some black magic happening. In the Kotlin DSL it is just delegated to an injected
FileOperations
in
SettingsScriptApi
which you can easily see by navigating to it from
settings.gradle.kts
.
So just do the same, inject a
FileOperations
in your plugin and use it. That's even what you should do in a project plugin, not only in a settings plugin.
j
Another way is
Copy code
from(rootDir.resolve(gradle/some.catalog.toml)
a
Thanks, that worked for me, but i ran into some other issues w/ applying plugins w/ alias. I’ll post about that problem separately. found a few github issues related to this new problem