Having problems setting IMPROVED_POM_SUPPORT feature

I’m creating a custom plugin and I would like to set the IMPROVED_POM_SUPPORT feature to enable so anyone using the plugin does not need to set it up in settings.gradle file

I’m doing the following but that doesn’t seem to work. Am I missing something?

 project.getGradle().settingsEvaluated((settings) -> {

Any help appreciated