Skip to content

chore(deps): bump com.squareup:kotlinpoet from 1.18.1 to 2.3.0#85

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/com.squareup-kotlinpoet-2.3.0
Open

chore(deps): bump com.squareup:kotlinpoet from 1.18.1 to 2.3.0#85
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/com.squareup-kotlinpoet-2.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 24, 2026

Copy link
Copy Markdown
Contributor

Bumps com.squareup:kotlinpoet from 1.18.1 to 2.3.0.

Release notes

Sourced from com.squareup:kotlinpoet's releases.

2.3.0

Thanks to @​haruue, @​hfhbd, @​yz4230, @​mina-jaff, @​BoD, @​RaoPrashanth for contributing to this release.

  • New: Kotlin 2.3.20.
  • New: KSP 2.3.6.
  • New: Support for defining type aliases inside other types. (#2167)
  • New: Add TypeName.annotated() convenience API for adding annotations to types. (#2281)
  • New: Add FileSpec.addImport(MemberName) to explicitly import a member. (#2198)
  • New: Add NameAllocator.contains to check if a given tag is already allocated. (#2160)
  • New: :interop:javapoet module has been discontinued and is not published starting with this release. (#2292)
  • New: In-development snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/. (#2135)
  • Fix: Annotation array parameters with annotation elements now correctly handled. (#2142)
  • Fix: KType.asTypeName now correctly handles recursively bound generics (e.g. T : Comparable<T>). (#2162)
  • Fix: Don't convert multi-statement function to expression body. (#2163)
  • Fix: FunSpec.beginControlFlow now accepts nullable arguments for consistency with CodeBlock.beginControlFlow. (#2174)
  • Fix: Ignore illegal characters inside escaped identifiers. (#2204)
  • Fix: emitNullable correctly when deferring type in CodeWriter. (#2217)
  • Fix: Escape /* and */ when emitting Kdoc. (#2258)
  • Fix: Generate imports for extension members used via %M in KDocs. (#2266)

2.2.0

Thanks to @​IRus for contributing to this release.

  • New: Kotlin 2.1.21.
  • New: KSP 2.1.21-2.0.1.
  • New: Add support for context parameters. (#2112)
  • New: Eliminate Guava dependency. (#2110)
  • New: Migrate to Dokka plugin V2. (#2113)

2.1.0

Thanks to @​ForteScarlet, @​TrevorSStone, @​RaoPrashanth, @​damianw, @​ansehoon1999, @​TheMrMilchmann for contributing to this release.

  • New: Kotlin 2.1.10.
  • New: KSP 2.1.10-1.0.30.
  • Fix: Support delegates on anonymous classes. (#2034)
  • Fix: Prevent aliased imports from colliding with existing imports. (#2052)
  • Fix: TypeName.MUTABLE_MAP_ENTRY now correctly uses the MutableEntry nested class name. (#2061)
  • Fix: Use the same aliased import for both the nullable and non-nullable versions of a type. (#2068)
  • Fix: Allow zero methods in a functional interface if it has a superinterface. (#2075)

2.0.0

Thanks to @​brokenhappy, @​tajobe, @​niyajali, @​ForteScarlet for contributing to this release.

This release is source- and binary-compatible with KotlinPoet 1.x.

The most important behavior change in this release is that spaces in generated code don't wrap by default anymore.

KotlinPoet 1.x used to replace space characters with newline characters whenever a given line of code exceeded the length limit. This usually led to better code formatting, but could also lead to compilation errors in generated code. Non-breaking spaces could be marked by the · character, but the discoverability of this feature wasn't great.

KotlinPoet 2.0 does not wrap spaces, even if the line of code they occur in exceeds the length limit. The newly introduced character can be used to mark spaces that are safe to wrap, which can improve code formatting. The · character has been preserved for compatibility, but its behavior is now equivalent to a regular space character.

... (truncated)

Changelog

Sourced from com.squareup:kotlinpoet's changelog.

Version 2.3.0

Thanks to [@​haruue][haruue], [@​hfhbd][hfhbd], [@​yz4230][yz4230], [@​mina-jaff][mina-jaff], [@​BoD][BoD], [@​RaoPrashanth][RaoPrashanth] for contributing to this release.

2026-03-27

  • New: Kotlin 2.3.20.
  • New: KSP 2.3.6.
  • New: Support for defining type aliases inside other types. (#2167)
  • New: Add TypeName.annotated() convenience API for adding annotations to types. (#2281)
  • New: Add FileSpec.addImport(MemberName) to explicitly import a member. (#2198)
  • New: Add NameAllocator.contains to check if a given tag is already allocated. (#2160)
  • New: :interop:javapoet module has been discontinued and is not published starting with this release. (#2292)
  • New: In-development snapshots are now published to the Central Portal Snapshots repository at https://central.sonatype.com/repository/maven-snapshots/. (#2135)
  • Fix: Annotation array parameters with annotation elements now correctly handled. (#2142)
  • Fix: KType.asTypeName now correctly handles recursively bound generics (e.g. T : Comparable<T>). (#2162)
  • Fix: Don't convert multi-statement function to expression body. (#2163)
  • Fix: FunSpec.beginControlFlow now accepts nullable arguments for consistency with CodeBlock.beginControlFlow. (#2174)
  • Fix: Ignore illegal characters inside escaped identifiers. (#2204)
  • Fix: emitNullable correctly when deferring type in CodeWriter. (#2217)
  • Fix: Escape /* and */ when emitting Kdoc. (#2258)
  • Fix: Generate imports for extension members used via %M in KDocs. (#2266)

Version 2.2.0

Thanks to [@​IRus][IRus] for contributing to this release.

2025-05-16

  • New: Kotlin 2.1.21.
  • New: KSP 2.1.21-2.0.1.
  • New: Add support for context parameters. (#2112)
  • New: Eliminate Guava dependency. (#2110)
  • New: Migrate to Dokka plugin V2. (#2113)

Version 2.1.0

Thanks to [@​ForteScarlet][ForteScarlet], [@​TrevorSStone][TrevorSStone], [@​RaoPrashanth][RaoPrashanth], [@​damianw][damianw], [@​ansehoon1999][ansehoon1999], [@​TheMrMilchmann][TheMrMilchmann] for contributing to this release.

2025-02-25

  • New: Kotlin 2.1.10.
  • New: KSP 2.1.10-1.0.30.
  • Fix: Support delegates on anonymous classes. (#2034)
  • Fix: Prevent aliased imports from colliding with existing imports. (#2052)
  • Fix: TypeName.MUTABLE_MAP_ENTRY now correctly uses the MutableEntry nested class name. (#2061)
  • Fix: Use the same aliased import for both the nullable and non-nullable versions of a type. (#2068)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Jun 24, 2026
Bumps [com.squareup:kotlinpoet](https://github.com/square/kotlinpoet) from 1.18.1 to 2.3.0.
- [Release notes](https://github.com/square/kotlinpoet/releases)
- [Changelog](https://github.com/square/kotlinpoet/blob/main/docs/changelog.md)
- [Commits](square/kotlinpoet@1.18.1...2.3.0)

---
updated-dependencies:
- dependency-name: com.squareup:kotlinpoet
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/gradle/com.squareup-kotlinpoet-2.3.0 branch from a2740fe to e4b54f9 Compare June 26, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants