[Gradle] Slight improvement for generated compiler options KDoc

Separated possible and default value from the description.

^KT-58858 In Progress
This commit is contained in:
Yahor Berdnikau
2023-11-27 21:04:33 +01:00
committed by Space Team
parent aeaaf6dd8e
commit c26b5ca365
12 changed files with 75 additions and 0 deletions
@@ -912,8 +912,10 @@ private fun Printer.generateDoc(property: KProperty1<*, *>) {
println("/**")
println(" * ${description.replace("\n", " ")}")
if (possibleValues != null) {
println(" *")
println(" * Possible values: ${possibleValues.joinToString()}")
}
println(" *")
println(" * Default value: ${defaultValue.removePrefix("$OPTIONS_PACKAGE_PREFIX.")}")
println(" */")
}