# Generating Kotlin code with KotlinPoet

DevFeed: [Generating Kotlin code with KotlinPoet](<https://devfeed.tech/articles/generating-kotlin-code-with-kotinpoet-20899.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/generating-kotlin-code-with-kotlinpoet/>)

Author: Jake Wharton

Published: 2017-05-16T16:36:46.125000Z

Content type: release

Language: en

Sources: [Jake Wharton](<https://devfeed.tech/sources/jake-wharton.md>)

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

Tags: [code-generation](<https://devfeed.tech/tags/code-generation.md>), [generation](<https://devfeed.tech/tags/generation.md>), [java](<https://devfeed.tech/tags/java.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [library](<https://devfeed.tech/tags/library.md>), [open-source](<https://devfeed.tech/tags/open-source.md>)

## AI overview

Square announces KotlinPoet, a library for generating Kotlin code. It builds on JavaPoet's model-based approach and supports generating code for Kotlin's JavaScript and native compilation targets, though the early-access release does not yet cover every language feature.

## Source excerpt

This post was published externally on Square Corner. Read it at https://developer.squareup.com/blog/generating-kotlin-code-with-kotlinpoet/.