Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for withIndent (0.04 sec)

  1. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

    @CacheableTask
    abstract class SortAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() {
    
        @TaskAction
        fun execute() {
            val gson: Gson = GsonBuilder().setFormattingStyle(FormattingStyle.PRETTY.withIndent("    ")).create()
            loadChanges().mapValues {
                gson.toJson(AcceptedApiChanges(sortChanges(it.value)))
            }.forEach {
                it.key.bufferedWriter().use { out ->
                    out.write(it.value)
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Apr 09 14:09:16 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top