# KotlinPoet 2.0 is here!

DevFeed: [KotlinPoet 2.0 is here!](<https://devfeed.tech/articles/kotlinpoet-2-0-is-here-29011.md>)

Original publisher: [Read original article](<https://code.cash.app/kotlinpoet-2-is-here>)

Author: Egor Andreevich

Published: 2024-11-05T00:00:00Z

Content type: release

Language: en

Sources: [Cash App Code Blog](<https://devfeed.tech/sources/cash-app-code-blog.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>)

Tags: [code-generation](<https://devfeed.tech/tags/code-generation.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [github](<https://devfeed.tech/tags/github.md>), [issue-tracker](<https://devfeed.tech/tags/issue-tracker.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [migration](<https://devfeed.tech/tags/migration.md>), [release](<https://devfeed.tech/tags/release.md>)

## AI overview

KotlinPoet 2.0 is a source- and binary-compatible major release of the Kotlin and Java API for generating Kotlin source files. It changes space wrapping so spaces do not wrap by default, while a newly introduced character marks spaces that are safe to wrap.

## Source excerpt

KotlinPoet 2.0 is the next, source- and binary-compatible major release of the library, that has important behavior changes.