Skip to content

build(deps): Bump squareup-kotlin-poet from 1.18.1 to 2.1.0 #21710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 26, 2025

Bumps squareup-kotlin-poet from 1.18.1 to 2.1.0.
Updates com.squareup:kotlinpoet-ksp from 1.18.1 to 2.1.0

Release notes

Sourced from com.squareup:kotlinpoet-ksp's releases.

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.

  • 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)
Changelog

Sourced from com.squareup:kotlinpoet-ksp's changelog.

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)
  • Fix: Allow zero methods in a functional interface if it has a superinterface. (#2075)

Version 2.0.0

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

2024-10-23

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)
Commits
  • 1c63279 Prepare for release 2.1.0
  • e2e7226 Check the Gradle distribution checksum (#2079)
  • 85b6be1 Update dependency mkdocs-material to v9.6.5 (#2078)
  • be3e910 Update dependency mkdocs-material to v9.6.4 (#2076)
  • 60a89a1 Kotlin & KSP 2.1.10 (#2029)
  • 527e851 Fix exception tying to generate empty fun interface which inherit another int...
  • 55c0010 Prevent aliased imports from colliding with existing imports (#2052)
  • 41ac411 Update dependency mkdocs-material to v9.6.2 (#2074)
  • d8a1484 Aliased import ignored for nullable variants of that type (#2068)
  • c8fef70 Update dependency pymdown-extensions to v10.14.3 (#2073)
  • Additional commits viewable in compare view

Updates com.squareup:kotlinpoet from 1.18.1 to 2.1.0

Release notes

Sourced from com.squareup:kotlinpoet's releases.

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.

  • 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)
Changelog

Sourced from com.squareup:kotlinpoet's changelog.

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)
  • Fix: Allow zero methods in a functional interface if it has a superinterface. (#2075)

Version 2.0.0

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

2024-10-23

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)
Commits
  • 1c63279 Prepare for release 2.1.0
  • e2e7226 Check the Gradle distribution checksum (#2079)
  • 85b6be1 Update dependency mkdocs-material to v9.6.5 (#2078)
  • be3e910 Update dependency mkdocs-material to v9.6.4 (#2076)
  • 60a89a1 Kotlin & KSP 2.1.10 (#2029)
  • 527e851 Fix exception tying to generate empty fun interface which inherit another int...
  • 55c0010 Prevent aliased imports from colliding with existing imports (#2052)
  • 41ac411 Update dependency mkdocs-material to v9.6.2 (#2074)
  • d8a1484 Aliased import ignored for nullable variants of that type (#2068)
  • c8fef70 Update dependency pymdown-extensions to v10.14.3 (#2073)
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps `squareup-kotlin-poet` from 1.18.1 to 2.1.0.

Updates `com.squareup:kotlinpoet-ksp` from 1.18.1 to 2.1.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.1.0)

Updates `com.squareup:kotlinpoet` from 1.18.1 to 2.1.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.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the bot: dependencies update PRs that update a dependency file, used by Dependabot. label Feb 26, 2025
@dependabot dependabot bot requested review from a team and nbradbury and removed request for a team February 26, 2025 09:03
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 26, 2025

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21710-0bea71f
Commit0bea71f
Direct Downloadwordpress-prototype-build-pr21710-0bea71f.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 26, 2025

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21710-0bea71f
Commit0bea71f
Direct Downloadjetpack-prototype-build-pr21710-0bea71f.apk
Note: Google Login is not supported on these builds.

@nbradbury
Copy link
Contributor

@wzieba This Poet update is causing tests to fail in RemoteConfigProcessorTest and RemoteFeatureConfigCheckBuilderTest. I'm not at all familiar with that code but it looks like you created those tests. Absolutely no rush on this, and in fact we can simply close this PR if the resolution isn't simple, but when you have a chance could you take a quick look at this?

@nbradbury
Copy link
Contributor

@wzieba Have you had a chance to look into the failing tests in RemoteConfigProcessorTest?

@wzieba
Copy link
Contributor

wzieba commented Apr 11, 2025

Thanks for the reminder @nbradbury ! No, sorry - this PR slipped out of my radar. I think I'll be able to focus on this PR next sprint though 👍 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: dependencies update PRs that update a dependency file, used by Dependabot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants