From 83e97ce83cca96a45e3b4f6efa211b069ac76d75 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Mon, 25 Apr 2022 18:24:54 -0500 Subject: [PATCH] build(deps): remove ktlint memory leak workaround It appears upstream has fixed the leak as of 0.45.0, so workaround not needed, and ktlint is now on 0.45.2 anyway, so use that Can't remove the actual version override that gets us 0.45.x until the ktlint gradle plugin has a new release but that hasn't happened yet --- build.gradle | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 0167bcf9c6dd..3c1faabd4dc5 100644 --- a/build.gradle +++ b/build.gradle @@ -71,7 +71,9 @@ subprojects { } ktlint { - version = "0.45.1" + // remove version override when ktlint gradle plugin releases with 0.45+ transitive + // check here https://github.com/JLLeitschuh/ktlint-gradle/blob/ddd465e28d77b879384886e1eef5666ebe518b4d/plugin/gradle/libs.versions.toml#L3 + version = "0.45.2" disabledRules = ["no-wildcard-imports"] } @@ -91,12 +93,6 @@ subprojects { freeCompilerArgs = ['-Xjvm-default=all'] } } - - // Workaround for: https://github.com/pinterest/ktlint/issues/1216 - // To be removed when upstream gets patched - tasks.withType(org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction) { - workerMaxHeapSize = "2048m" - } } }