Skip to content

fix(deps): update dependency com.squareup:kotlinpoet to v2#122

Open
renovate-bot wants to merge 1 commit into
vlsi:masterfrom
renovate-bot:renovate/com.squareup-kotlinpoet-2.x
Open

fix(deps): update dependency com.squareup:kotlinpoet to v2#122
renovate-bot wants to merge 1 commit into
vlsi:masterfrom
renovate-bot:renovate/com.squareup-kotlinpoet-2.x

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
com.squareup:kotlinpoet 1.18.12.3.0 age confidence

Release Notes

square/kotlinpoet (com.squareup:kotlinpoet)

v2.3.0

Compare Source

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)

v2.2.0

Compare Source

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)

v2.1.0

Compare Source

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)

v2.0.0

Compare Source

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.

  • New: Kotlin 2.0.10.
  • New: Spaces don't break by default.
  • New: New placeholder representing a space that is safe to wrap.
  • New: Add KSTypeAlias.toClassName(). (#​1956)
  • New: Add KSType.toClassNameOrNull(). (#​1956)
  • Fix: Enum classes that only have an init block now also generate the required semicolon. (#​1953)
  • Fix: Preserve typealiases in KSAnnotation.toAnnotationSpec(). (#​1956)
  • Fix: Preserve nullability in KSType.toClassName(). (#​1956)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "every 3 weeks on Monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from 2753b32 to 4b544fd Compare September 8, 2025 14:32
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch 2 times, most recently from cf6fd40 to 63f1d59 Compare November 19, 2025 00:01
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from 63f1d59 to a06dfe3 Compare December 30, 2025 13:15
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from a06dfe3 to 1fb25b4 Compare March 27, 2026 13:50
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from 1fb25b4 to ac6eaff Compare May 7, 2026 13:39
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from ac6eaff to 04cc22f Compare May 22, 2026 04:09
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-2.x branch from 04cc22f to 522c401 Compare May 22, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant