diff --git a/CHANGELOG.md b/CHANGELOG.md index 561c56918f..c36a0b1352 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Fixed +* Remove experimental flag `-Xuse-k2` as it forces API Consumers to compile their projects with this same flag ([#1506](https://github.com/pinterest/ktlint/issues/1506)). + ### Changed ### Removed diff --git a/buildSrc/src/main/kotlin/ktlint-kotlin-common.gradle.kts b/buildSrc/src/main/kotlin/ktlint-kotlin-common.gradle.kts index 512acbfe8e..f5e1c29b6b 100644 --- a/buildSrc/src/main/kotlin/ktlint-kotlin-common.gradle.kts +++ b/buildSrc/src/main/kotlin/ktlint-kotlin-common.gradle.kts @@ -19,11 +19,4 @@ kotlin { } } -tasks.withType().configureEach { - kotlinOptions { - @Suppress("SuspiciousCollectionReassignment") - freeCompilerArgs += listOf("-Xuse-k2") - } -} - addAdditionalJdkVersionTests()