Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 25, 2022

Bumps kotlinpoet from 1.9.0 to 1.11.0.

Release notes

Sourced from kotlinpoet's releases.

1.11.0

Thanks to @​liujingxing and @​BoD for contributing to this release.

  • New: Kotlin scripting support in FileSpec.
val spec = FileSpec.scriptBuilder("Taco")
  .addStatement("println(%S)", "hello world!")
  .addKotlinDefaultImports()
  .build()

Generates a Taco.kts file with the following contents:

println("hello!")
  • New: Emit trailing commas for multi-line parameters and annotations.
  • New: Add KSAnnotation.toAnnotationSpec().
  • New: Add Unit and CharSequence conversions in javapoet-interop.
  • New: Add support for default imports in FileSpec.
    • This is particularly oriented at scripting support, but can also be used in non-script files.
  • New: Update to Kotlin 1.6.10.
  • Fix: Fail compilation if you only pass one string to ClassName.
  • Fix: Inline val property if its getter is inline.
  • Fix: Add yield to the list of reserved keywords.
  • Fix: Enforce only allowed parameter modifiers in ParameterSpec (i.e. crossinline, vararg, and noinline).
  • Fix: Fix CodeBlocks in class delegation getting toString()'d instead of participating in code writing.
  • Fix: Error when attempting to convert KSP error types (i.e. if KSType.isError is true) to TypeName.

1.10.2

Thanks to @​glureau and @​goooler for contributing to this release.

  • #1175 New: Switch AnnotationSpec.get() to use the arrayOf() syntax instead of [].
  • #1170 Fix: Don't wrap aliasing imports with long package names.
  • #1174 Fix: Don't wrap type names inside line comments.
  • #1167 Fix: Ignore Java's @Deprecated annotations on synthetic methods for annotations.

1.10.1

Thanks to @​evant for contributing to this release.

  • Fix: Correct generation of typealiases with type args in KSP interop.
  • Fix: Add missing default TypeParameterResolver.EMPTY argument to fun KSTypeArgument.toTypeName in KSP interop.

1.10.0

Thanks to @​martinbonnin, @​idanakav, @​goooler, and @​anandwana001 for contributing to this release.

  • New: Add a new KSP interop artifact. See docs for more details.
  • New: Add a new JavaPoet interop artifact. See docs for more details.

... (truncated)

Changelog

Sourced from kotlinpoet's changelog.

Version 1.11.0

2022-03-24

Thanks to [@​liujingxing][liujingxing] and [@​BoD][BoD] for contributing to this release.

  • New: Kotlin scripting support in FileSpec.
val spec = FileSpec.scriptBuilder("Taco")
  .addStatement("println(%S)", "hello world!")
  .addKotlinDefaultImports()
  .build()

Generates a Taco.kts file with the following contents:

println("hello!")
  • New: Emit trailing commas for multi-line parameters and annotations.
  • New: Add KSAnnotation.toAnnotationSpec().
  • New: Add Unit and CharSequence conversions in javapoet-interop.
  • New: Add support for default imports in FileSpec.
    • This is particularly oriented at scripting support, but can also be used in non-script files.
  • New: Update to Kotlin 1.6.10.
  • Fix: Fail compilation if you only pass one string to ClassName.
  • Fix: Inline val property if its getter is inline.
  • Fix: Add yield to the list of reserved keywords.
  • Fix: Enforce only allowed parameter modifiers in ParameterSpec (i.e. crossinline, vararg, and noinline).
  • Fix: Fix CodeBlocks in class delegation getting toString()'d instead of participating in code writing.
  • Fix: Error when attempting to convert KSP error types (i.e. if KSType.isError is true) to TypeName.

Version 1.10.2

2021-10-22

Thanks to [@​glureau][glureau] and [@​goooler][goooler] for contributing to this release.

  • New: Switch AnnotationSpec.get() to use the arrayOf() syntax instead of [].
  • Fix: Don't wrap aliasing imports with long package names.
  • Fix: Don't wrap type names inside line comments.
  • Fix: Ignore Java's @Deprecated annotations on synthetic methods for annotations.

Version 1.10.1

2021-09-21

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

... (truncated)

Commits
  • 5f47a08 Prepare for release 1.11.0
  • a88ccd8 Prepare 1.11.0 release notes (#1227)
  • 1481838 Merge pull request #1226 from square/jw/trailing-comma-annotation/2022-03-14
  • 97073c8 Emit trailing comma for multi-line annotations
  • 47a1412 Merge pull request #1225 from square/jw/trailing-comma/2022-03-14
  • 2f72dd9 Emit trailing comma for multi-line parameters
  • 259e722 Merge pull request #1222 from square/jw/error/2022-02-28
  • 68bea3e Fail compilation if you only pass one string to ClassName
  • 9570aba Merge pull request #1220 from square/egorand/220220/inline-val
  • 8fe75ef Merge pull request #1219 from square/egorand/220220/fix-inline-example
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)

Bumps [kotlinpoet](https://github.com/square/kotlinpoet) from 1.9.0 to 1.11.0.
- [Release notes](https://github.com/square/kotlinpoet/releases)
- [Changelog](https://github.com/square/kotlinpoet/blob/master/docs/changelog.md)
- [Commits](square/kotlinpoet@1.9.0...1.11.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 25, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jun 14, 2022

Superseded by #286.

@dependabot dependabot bot closed this Jun 14, 2022
@dependabot dependabot bot deleted the dependabot/gradle/com.squareup-kotlinpoet-1.11.0 branch June 14, 2022 07:22
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant