Settings Operations APIs
Some of the tools that are available on ConfigurationPhaseOperations are also available in the settings.gradle(.kts) files.
They are:
When writing a plugin you can get access to them by
Usage as a plugin (recommended)
import org.ysb33r.grolifant.api.core.plugins.GrolifantSettingsPlugin (1)
import org.ysb33r.grolifant.api.core.settings.SettingsOperations
class MyPlugin implements Plugin<Settings> {
void apply(Settings settings) {
settings.plugin.apply(GrolifantSettingsPlugin) (2)
final cpo = SettingsOperations.from(settings) (3)
}
}
| 1 | Required import |
| 2 | Install the core plugin. |
| 3 | How to get operations that can be used by settings. |