Skip to content

Commit

Permalink
build(deps): remove ktlint memory leak workaround
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikehardy committed Apr 26, 2022
1 parent 88b60ef commit 1f2dc01
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

Expand All @@ -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"
}
}
}

Expand Down

0 comments on commit 1f2dc01

Please sign in to comment.