Skip to content

Commit

Permalink
Use stable Kotlin compiler frontend (#1506)
Browse files Browse the repository at this point in the history
* Use stable Kotlin compiler frontend

Using K2 means library consumers must also
update, otherwise they will have errors like
"<classname> is compiled by the new Kotlin
compiler frontend and cannot be loaded by the old
compiler"

* Update changelog

Co-authored-by: paul-dingemans <paul-dingemans@users.noreply.github.com>
  • Loading branch information
3flex and paul-dingemans authored Jun 20, 2022
1 parent 95f32d3 commit 60d412a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions buildSrc/src/main/kotlin/ktlint-kotlin-common.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@ kotlin {
}
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
@Suppress("SuspiciousCollectionReassignment")
freeCompilerArgs += listOf("-Xuse-k2")
}
}

addAdditionalJdkVersionTests()

0 comments on commit 60d412a

Please sign in to comment.