kspFrontendFile
A reference to the frontend metadata file generated by KSP.
The underlying value is guaranteed to exist.
The file is associated as an output of the KSP task that creates it, allowing gradle to properly generate task dependencies when it is used as a task input.
For example, registering a task like:
tasks.register("printFrontendMetadata") {
inputs.file(project.kspFrontendFile(jsTarget))
/* ... task action here ... */
}
Content copied to clipboard
will ensure that the printFrontendMetadata
task runs after the frontend metadata file is created by KSP.