pub async fn write_gradle_version(
path: &Path,
new_version: &str,
policy: GradleVersionScope,
) -> Result<()>Expand description
Write new_version into a Gradle build file (.kts or Groovy),
preserving formatting.
ยงErrors
Returns an error if the file cannot be read or written, or unless exactly one editable version declaration exists in a supported scope.