I'm creating a Gradle plugin that configures another Gradle plugin. One piece of configuration is to provide RegularFileProperty instance. How can I create instance of such interface if I just have String object in hand? Or a resource bundled with my plugin?
With TextResource I was doing it by resources.text.fromString(...) or
project.with {
resources.text.fromString(buildscript.classLoader.getResource(resourceName).text)
}
What would be equivalent snippet to create a RegularFileProperty? If the only way is by a temporary file, how and where should I create it?