vlsi / vlsi-release-plugins

A set of plugins to simplify Gradle release tasks
Apache License 2.0
41 stars 13 forks source link

fix(deps): update dependency com.squareup:kotlinpoet to v1.18.1 #79

Open renovate-bot opened 11 months ago

renovate-bot commented 11 months ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup:kotlinpoet 1.3.0 -> 1.18.1 age adoption passing confidence

Release Notes

square/kotlinpoet (com.squareup:kotlinpoet) ### [`v1.18.1`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.18.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.18.0...1.18.1) Thanks to [@​mitasov-ra](https://redirect.github.com/mitasov-ra) for contributing to this release. - Fix: Workaround for [KT-18706](https://youtrack.jetbrains.com/issue/KT-18706): KotlinPoet now generates import aliases without backticks ([#​1920](https://redirect.github.com/square/kotlinpoet/issues/1920)). ```kotlin // before, doesn't compile due to KT-18706 import com.example.one.`$Foo` as `One$Foo` import com.example.two.`$Foo` as `Two$Foo` // now, compiles import com.example.one.`$Foo` as One__Foo import com.example.two.`$Foo` as Two__Foo ``` ### [`v1.18.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.18.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.17.0...1.18.0) Thanks to [@​DanielGronau](https://redirect.github.com/DanielGronau) for contributing to this release. - New: Kotlin 2.0.0. - New: KSP 2.0.0-1.0.22. - New: Promote `kotlinpoet-metadata` out of preview to stable. - New: Migrate `kotlinpoet-metadata` to stable `org.jetbrains.kotlin:kotlin-metadata-jvm` artifact for Metadata parsing. - New: Make enum entry references in `KSAnnotation.toAnnotationSpec()` and `KSClassDeclaration.toClassName()` more robust. - Fix: Don't expand typealiases of function types to `LambdaTypeName`s in `KSTypeReference.toTypeName()`. - Fix: Avoid rounding small double and float values in `%L` translation ([#​1927](https://redirect.github.com/square/kotlinpoet/issues/1927)). - Fix: Fix typealias type argument resolution in KSP2 ([#​1929](https://redirect.github.com/square/kotlinpoet/issues/1929)). ### [`v1.17.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.17.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.16.0...1.17.0) Thanks to [@​jisungbin](https://redirect.github.com/jisungbin), [@​hfhbd](https://redirect.github.com/hfhbd), [@​evant](https://redirect.github.com/evant), [@​sgjesse](https://redirect.github.com/sgjesse), [@​sebek64](https://redirect.github.com/sebek64) for contributing to this release. - Change: kotlinx-metadata 0.9.0. Note that the `KotlinClassMetadata.read` is deprecated in 0.9.0 and replaced with `readStrict` ([#​1830](https://redirect.github.com/square/kotlinpoet/issues/1830)). - Note: we now also provide `lenient` parameters to map to the underlying `readStrict()` and `readLenient()` calls ([#​1766](https://redirect.github.com/square/kotlinpoet/issues/1766)). - We have also removed various `Class`/`TypeElement`/`Metadata`-to-`KmClass` APIs from the public API, as these are trivial to write now with kotlinx-metadata's newer APIs and allows us to focus the API surface area of this artifact better ([#​1891](https://redirect.github.com/square/kotlinpoet/issues/1891)). - New: Supertype list wraps to one-per-line if the primary constructor spans multiple lines ([#​1866](https://redirect.github.com/square/kotlinpoet/issues/1866)). - New: Extract `MemberSpecHolder` interface for constructs that can hold `PropertySpec`s and `FunSpec`s and their builders ([#​1877](https://redirect.github.com/square/kotlinpoet/issues/1877)). - New: `joinToCode` variant which operates on any type, but requires a transform lambda to convert each element into a `CodeBlock` ([#​1874](https://redirect.github.com/square/kotlinpoet/issues/1874)). - New: Support annotation type arguments in `KSAnnotation.toAnnotationSpec()` ([#​1889](https://redirect.github.com/square/kotlinpoet/issues/1889)). - Fix: Prevent name clashes between a function in class and a function call in current scope ([#​1850](https://redirect.github.com/square/kotlinpoet/issues/1850)). - Fix: Fix extension function imports ([#​1814](https://redirect.github.com/square/kotlinpoet/issues/1814)). - Fix: Omit implicit modifiers on `FileSpec.scriptBuilder` ([#​1813](https://redirect.github.com/square/kotlinpoet/issues/1813)). - Fix: Fix trailing newline in `PropertySpec` ([#​1827](https://redirect.github.com/square/kotlinpoet/issues/1827)). - Fix: `KSAnnotation.toAnnotationSpec` writes varargs in place instead of making them an array to work around a Kotlin issue with OptIn annotations ([#​1833](https://redirect.github.com/square/kotlinpoet/issues/1833)). - Fix: `MemberName`s without a package are now correctly imported ([#​1841](https://redirect.github.com/square/kotlinpoet/issues/1841)) - Fix: Throw if primary constructor delegates to other constructors ([#​1859](https://redirect.github.com/square/kotlinpoet/issues/1859)). - Fix: Aliased imports with nested class ([#​1876](https://redirect.github.com/square/kotlinpoet/issues/1876)). - Fix: Check for error types in `KSType.toClassName()` ([#​1890](https://redirect.github.com/square/kotlinpoet/issues/1890)). - Fix: Support generating a single import for overloaded `MemberName`s ([#​1909](https://redirect.github.com/square/kotlinpoet/issues/1909)). ### [`v1.16.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.16.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.15.3...1.16.0) Thanks to [@​drawers](https://redirect.github.com/drawers), [@​rickclephas](https://redirect.github.com/rickclephas) for contributing to this release. - New: Kotlin 1.9.22. - New: KSP 1.9.22-1.0.16. - New: Add `NameAllocator` API to control keyword pre-allocation ([#​1803](https://redirect.github.com/square/kotlinpoet/issues/1803)). - Fix: Fix issue with missing suspend modifier in `KSTypeReference.toTypeName` ([#​1793](https://redirect.github.com/square/kotlinpoet/issues/1793)). - Fix: Honour same-package import aliases ([#​1794](https://redirect.github.com/square/kotlinpoet/issues/1794)). - Fix: Always include parameter docs in the type header ([#​1800](https://redirect.github.com/square/kotlinpoet/issues/1800)). ### [`v1.15.3`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.15.3) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.15.2...1.15.3) Thanks to [@​gabrielittner](https://redirect.github.com/gabrielittner) for contributing to this release. - Fix: Fix nullability of lambdas in `KSTypeReference.toTypeName` ([#​1756](https://redirect.github.com/square/kotlinpoet/issues/1756)). ### [`v1.15.2`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.15.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.15.1...1.15.2) Thanks to [@​evant](https://redirect.github.com/evant) for contributing to this release. - New: Kotlin 1.9.21. - New: KSP 1.9.21-1.0.15. - New: KSP: more accurately represent function types ([#​1742](https://redirect.github.com/square/kotlinpoet/issues/1742)). ### [`v1.15.1`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.15.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.15.0...1.15.1) - Fix: Fix a regression introduced by [#​1637](https://redirect.github.com/square/kotlinpoet/issues/1637), where a superfluous newline is added to a type's KDoc if it has a primary constructor with no docs ([#​1727](https://redirect.github.com/square/kotlinpoet/issues/1727)). ### [`v1.15.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.15.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.14.2...1.15.0) Thanks to [@​drawers](https://redirect.github.com/drawers), [@​fejesjoco](https://redirect.github.com/fejesjoco), [@​takahirom](https://redirect.github.com/takahirom), [@​martinbonnin](https://redirect.github.com/martinbonnin), [@​mcarleio](https://redirect.github.com/mcarleio) for contributing to this release. In this release the `:kotlinpoet` module has been converted to a Kotlin Multiplatform module ([#​1654](https://redirect.github.com/square/kotlinpoet/issues/1654)), though for now it only supports the JVM target. - New: Kotlin 1.9.20. - New: KSP 1.9.20-1.0.14. - New: Extract `TypeSpecHolder` interface for constructs that can hold a `TypeSpec` and their builders ([#​1723](https://redirect.github.com/square/kotlinpoet/issues/1723)). - New: Expose relative path from `FileSpec` ([#​1720](https://redirect.github.com/square/kotlinpoet/issues/1720)). - New: Return the generated path from `FileSpec.writeTo()`. ([#​1514](https://redirect.github.com/square/kotlinpoet/issues/1514)). - New: Remove default compatibility from unstable types ([#​1662](https://redirect.github.com/square/kotlinpoet/issues/1662)). - New: Deprecate `TypeSpec.expectClassBuilder()` and `TypeSpec.valueClassBuilder()` ([#​1589](https://redirect.github.com/square/kotlinpoet/issues/1589)). - New: Add option to convert `KSAnnotation` to `AnnotationSpec` while omitting default values ([#​1538](https://redirect.github.com/square/kotlinpoet/issues/1538)). - New: Add `FileSpec.builder` convenience for `MemberName` ([#​1585](https://redirect.github.com/square/kotlinpoet/issues/1585)). - Fix: Set `DecimalFormatSymbols.minusSign` for consistency across locales ([#​1658](https://redirect.github.com/square/kotlinpoet/issues/1658)). - Fix: Fix link to incremental KSP in KDoc ([#​1638](https://redirect.github.com/square/kotlinpoet/issues/1638)). - Fix: Emit primary constructor KDoc ([#​1637](https://redirect.github.com/square/kotlinpoet/issues/1637)). - Change: kotlinx-metadata 0.7.0. This is a breaking change for users of the `:kotlinpoet-metadata` module, as most `Flags`-API extensions have been removed in favor of the now-available first-party versions. ### [`v1.14.2`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.14.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.14.1...1.14.2) - Fix: Fix one more missing API in binary compatibility override in `Annotatable.Builder` ([#​1581](https://redirect.github.com/square/kotlinpoet/issues/1581)). ### [`v1.14.1`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.14.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.14.0...1.14.1) - Fix: Restore ABI stability for annotatable and documentable builders ([#​1580](https://redirect.github.com/square/kotlinpoet/issues/1580)). ### [`v1.14.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.14.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.13.2...1.14.0) Thanks to [@​Omico](https://redirect.github.com/Omico), [@​drawers](https://redirect.github.com/drawers), [@​RBusarow](https://redirect.github.com/RBusarow) for contributing to this release. - New: Kotlin 1.8.21. - New: KSP 1.8.21-1.0.11. - New: Enable default methods in Java bytecode ([#​1561](https://redirect.github.com/square/kotlinpoet/issues/1561)). - New: Group Kotlin and Renovate updates together in Renovate ([#​1562](https://redirect.github.com/square/kotlinpoet/issues/1562)). - New: Extract trait interface for annotatable constructs and their builders ([#​1564](https://redirect.github.com/square/kotlinpoet/issues/1564)). - New: Extract trait interface for documentable constructs and their builders ([#​1571](https://redirect.github.com/square/kotlinpoet/issues/1571)). - New: Document the usage of `STAR` ([#​1572](https://redirect.github.com/square/kotlinpoet/issues/1572)). - New: Add builder for `FunSpec` which accepts a `MemberName` ([#​1574](https://redirect.github.com/square/kotlinpoet/issues/1574)). - Fix: Omit public modifier on override function or constructor parameters ([#​1550](https://redirect.github.com/square/kotlinpoet/issues/1550)). - Fix: Correct handling of members in various types ([#​1558](https://redirect.github.com/square/kotlinpoet/issues/1558)). - Fix: Function return types now default to `Unit` unless explicitly set ([#​1559](https://redirect.github.com/square/kotlinpoet/issues/1559)). Previously the default was `null` which behaved like `Unit` for block bodies. When an expression body was produced, however, no return type would be emitted. This meant that the return type was implicit based on the contents of the body. With this change, when no return type is specified and an expression body is produced, the return type will be explicitly `Unit`. Specify the actual return type explicitly to correct the output. Old versions: ```kotlin val funSpec = FunSpec.builder("foo") .addStatement("return 1") .build() ``` ```kotlin public fun foo() = 1 ``` This version, incorrect: ```kotlin val funSpec = FunSpec.builder("foo") .addStatement("return 1") .build() ``` ```kotlin public fun foo(): Unit = 1 // ❌ ``` This version, correct: ```diff val funSpec = FunSpec.builder("foo") + .returns(INT) .addStatement("return 1") .build() ``` ```kotlin public fun foo(): Int = 1 // ✅ ``` Additionally, as part of this change, `FunSpec.returnType` has changed to be non-nullable. This is a source- and binary-compatible change, although if you were performing null-checks then new warnings may appear after upgrade. - Fix: Append nested class names to alias during name lookup ([#​1568](https://redirect.github.com/square/kotlinpoet/issues/1568)). - Fix: Allow PropertySpec with context receivers and without getter or setter ([#​1575](https://redirect.github.com/square/kotlinpoet/issues/1575)). ### [`v1.13.2`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.13.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.13.1...1.13.2) #### What's Changed - KSType.toTypeName fixed to work with aliased types by [@​Squiry](https://redirect.github.com/Squiry) in [https://github.com/square/kotlinpoet/pull/1534](https://redirect.github.com/square/kotlinpoet/pull/1534) #### New Contributors - [@​Squiry](https://redirect.github.com/Squiry) made their first contribution in [https://github.com/square/kotlinpoet/pull/1534](https://redirect.github.com/square/kotlinpoet/pull/1534) **Full Changelog**: https://github.com/square/kotlinpoet/compare/1.13.1...1.13.2 ### [`v1.13.1`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.13.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.13.0...1.13.1) #### What's Changed - Fix: Look at canonical names instead of just package names when generating import aliases by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1519](https://redirect.github.com/square/kotlinpoet/pull/1519) - Fix: Ignore KSP annotation arguments without a value by [@​rickclephas](https://redirect.github.com/rickclephas) in [https://github.com/square/kotlinpoet/pull/1523](https://redirect.github.com/square/kotlinpoet/pull/1523) - Fix: Fix arguments handling in KSType.toTypeName() by [@​ZacSweers](https://redirect.github.com/ZacSweers) in [https://github.com/square/kotlinpoet/pull/1529](https://redirect.github.com/square/kotlinpoet/pull/1529) #### New Contributors - [@​rickclephas](https://redirect.github.com/rickclephas) made their first contribution in [https://github.com/square/kotlinpoet/pull/1523](https://redirect.github.com/square/kotlinpoet/pull/1523) **Full Changelog**: https://github.com/square/kotlinpoet/compare/1.13.0...1.13.1 ### [`v1.13.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.13.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.12.0...1.13.0) #### What's Changed - New: Kotlin 1.8.0. - New: KSP 1.8.0-1.0.9. - New: Support context receivers on TypeSpecs + extract ContextReceivable API ([#​1269](https://redirect.github.com/square/kotlinpoet/issues/1269)). - New: Optimize `OriginatingElements` and `TagMap` implementations ([#​1270](https://redirect.github.com/square/kotlinpoet/issues/1270)). - New: Auto-generate import aliases for types and members ([#​1355](https://redirect.github.com/square/kotlinpoet/issues/1355)). - New: Insert underscores into large decimal literals ([#​1384](https://redirect.github.com/square/kotlinpoet/issues/1384)). - New: New factory function `FileSpec.builder(ClassName)` ([#​1397](https://redirect.github.com/square/kotlinpoet/issues/1397)). - Fix: Fix StackOverflowError when calling `KSTypeArgument.toTypeName()` for a wildcard in a recursive type bound ([#​1272](https://redirect.github.com/square/kotlinpoet/issues/1272)). - Fix: Fix transitive aliases ([#​1306](https://redirect.github.com/square/kotlinpoet/issues/1306)). - Fix: Fix Aliases as TypeArgument ([#​1321](https://redirect.github.com/square/kotlinpoet/issues/1321)). - Fix: Don't escape special characters inside raw strings ([#​1331](https://redirect.github.com/square/kotlinpoet/issues/1331)). - Fix: Fix KSP interop's output of the annotation parameter value of type Char ([#​1338](https://redirect.github.com/square/kotlinpoet/issues/1338)). - Fix: Fix KSP interop's output for primitive arrays ([#​1340](https://redirect.github.com/square/kotlinpoet/issues/1340)). - Fix: Avoid emitting public if `shouldEmitPublicModifier` returns false ([#​1342](https://redirect.github.com/square/kotlinpoet/issues/1342)). - Fix: Fix context receivers being rendered in an incorrect position when on a nullable/suspending `LambdaTypeName` ([#​1454](https://redirect.github.com/square/kotlinpoet/issues/1454)). - Fix: Do not use `bestGuess` for `KClass.asClassName` ([#​1469](https://redirect.github.com/square/kotlinpoet/issues/1469)). - Fix: Handle fake nested types with platform mapped parents ([#​1472](https://redirect.github.com/square/kotlinpoet/issues/1472)). - Fix: Fix `TypeName` equals ([#​1477](https://redirect.github.com/square/kotlinpoet/issues/1477)). - Fix: Make equals consistent with compareTo for `ClassName` ([#​1506](https://redirect.github.com/square/kotlinpoet/issues/1506)). #### New Contributors - [@​popematt](https://redirect.github.com/popematt) made their first contribution in [https://github.com/square/kotlinpoet/pull/1272](https://redirect.github.com/square/kotlinpoet/pull/1272) - [@​bitPogo](https://redirect.github.com/bitPogo) made their first contribution in [https://github.com/square/kotlinpoet/pull/1306](https://redirect.github.com/square/kotlinpoet/pull/1306) - [@​mars885](https://redirect.github.com/mars885) made their first contribution in [https://github.com/square/kotlinpoet/pull/1338](https://redirect.github.com/square/kotlinpoet/pull/1338) - [@​sjudd](https://redirect.github.com/sjudd) made their first contribution in [https://github.com/square/kotlinpoet/pull/1344](https://redirect.github.com/square/kotlinpoet/pull/1344) - [@​Sironheart](https://redirect.github.com/Sironheart) made their first contribution in [https://github.com/square/kotlinpoet/pull/1384](https://redirect.github.com/square/kotlinpoet/pull/1384) - [@​polarene](https://redirect.github.com/polarene) made their first contribution in [https://github.com/square/kotlinpoet/pull/1397](https://redirect.github.com/square/kotlinpoet/pull/1397) - [@​DeoTimeTheGithubUser](https://redirect.github.com/DeoTimeTheGithubUser) made their first contribution in [https://github.com/square/kotlinpoet/pull/1454](https://redirect.github.com/square/kotlinpoet/pull/1454) - [@​drawers](https://redirect.github.com/drawers) made their first contribution in [https://github.com/square/kotlinpoet/pull/1477](https://redirect.github.com/square/kotlinpoet/pull/1477) **Full Changelog**: https://github.com/square/kotlinpoet/compare/1.12.0...1.13.0 ### [`v1.12.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.12.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.11.0...1.12.0) #### What's Changed - Fix typo in changelog by [@​WhosNickDoglio](https://redirect.github.com/WhosNickDoglio) in [https://github.com/square/kotlinpoet/pull/1228](https://redirect.github.com/square/kotlinpoet/pull/1228) - Fix doc site list by [@​ZacSweers](https://redirect.github.com/ZacSweers) in [https://github.com/square/kotlinpoet/pull/1231](https://redirect.github.com/square/kotlinpoet/pull/1231) - Add Java 18 to CI build matrix by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1237](https://redirect.github.com/square/kotlinpoet/pull/1237) - Run tests on all JDKs but only build on 18 by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1238](https://redirect.github.com/square/kotlinpoet/pull/1238) - setup-java v3 by [@​sullis](https://redirect.github.com/sullis) in [https://github.com/square/kotlinpoet/pull/1239](https://redirect.github.com/square/kotlinpoet/pull/1239) - Add support for context-receivers by [@​DRSchlaubi](https://redirect.github.com/DRSchlaubi) in [https://github.com/square/kotlinpoet/pull/1233](https://redirect.github.com/square/kotlinpoet/pull/1233) - Resolve enum constants when emitting types by [@​martinbonnin](https://redirect.github.com/martinbonnin) in [https://github.com/square/kotlinpoet/pull/1235](https://redirect.github.com/square/kotlinpoet/pull/1235) - Update dependencies by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1240](https://redirect.github.com/square/kotlinpoet/pull/1240) - Properly unwrap KSTypeAlias with an unused type parameter by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1241](https://redirect.github.com/square/kotlinpoet/pull/1241) - Unwrap nested KSTypeAliases recursively by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1242](https://redirect.github.com/square/kotlinpoet/pull/1242) - Add support for context receivers [@​PropertySpec](https://redirect.github.com/PropertySpec) and fix issues with annotations by [@​seriouslyhypersonic](https://redirect.github.com/seriouslyhypersonic) in [https://github.com/square/kotlinpoet/pull/1247](https://redirect.github.com/square/kotlinpoet/pull/1247) - Work around KT-52315 by [@​ephemient](https://redirect.github.com/ephemient) in [https://github.com/square/kotlinpoet/pull/1248](https://redirect.github.com/square/kotlinpoet/pull/1248) - use %N instead of %L for annotation arg names so keywords are handled by [@​dkilmer](https://redirect.github.com/dkilmer) in [https://github.com/square/kotlinpoet/pull/1249](https://redirect.github.com/square/kotlinpoet/pull/1249) - Add a test for [#​1035](https://redirect.github.com/square/kotlinpoet/issues/1035) by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1250](https://redirect.github.com/square/kotlinpoet/pull/1250) - Fix KDoc link by [@​aksh1618](https://redirect.github.com/aksh1618) in [https://github.com/square/kotlinpoet/pull/1255](https://redirect.github.com/square/kotlinpoet/pull/1255) - Fix a bug caused by too long return expressions by [@​zsqw123](https://redirect.github.com/zsqw123) in [https://github.com/square/kotlinpoet/pull/1256](https://redirect.github.com/square/kotlinpoet/pull/1256) - Add support for external property getter by [@​roihershberg](https://redirect.github.com/roihershberg) in [https://github.com/square/kotlinpoet/pull/1260](https://redirect.github.com/square/kotlinpoet/pull/1260) - Update to Kotlin 1.7 + other deps by [@​ZacSweers](https://redirect.github.com/ZacSweers) in [https://github.com/square/kotlinpoet/pull/1262](https://redirect.github.com/square/kotlinpoet/pull/1262) - Promote KSP APIs to stable + integrate ABI validator by [@​ZacSweers](https://redirect.github.com/ZacSweers) in [https://github.com/square/kotlinpoet/pull/1263](https://redirect.github.com/square/kotlinpoet/pull/1263) - Gradle 7.4.2 by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1265](https://redirect.github.com/square/kotlinpoet/pull/1265) - Add version badge to docs/index.md by [@​Egorand](https://redirect.github.com/Egorand) in [https://github.com/square/kotlinpoet/pull/1266](https://redirect.github.com/square/kotlinpoet/pull/1266) #### New Contributors - [@​WhosNickDoglio](https://redirect.github.com/WhosNickDoglio) made their first contribution in [https://github.com/square/kotlinpoet/pull/1228](https://redirect.github.com/square/kotlinpoet/pull/1228) - [@​DRSchlaubi](https://redirect.github.com/DRSchlaubi) made their first contribution in [https://github.com/square/kotlinpoet/pull/1233](https://redirect.github.com/square/kotlinpoet/pull/1233) - [@​seriouslyhypersonic](https://redirect.github.com/seriouslyhypersonic) made their first contribution in [https://github.com/square/kotlinpoet/pull/1247](https://redirect.github.com/square/kotlinpoet/pull/1247) - [@​ephemient](https://redirect.github.com/ephemient) made their first contribution in [https://github.com/square/kotlinpoet/pull/1248](https://redirect.github.com/square/kotlinpoet/pull/1248) - [@​dkilmer](https://redirect.github.com/dkilmer) made their first contribution in [https://github.com/square/kotlinpoet/pull/1249](https://redirect.github.com/square/kotlinpoet/pull/1249) - [@​aksh1618](https://redirect.github.com/aksh1618) made their first contribution in [https://github.com/square/kotlinpoet/pull/1255](https://redirect.github.com/square/kotlinpoet/pull/1255) - [@​zsqw123](https://redirect.github.com/zsqw123) made their first contribution in [https://github.com/square/kotlinpoet/pull/1256](https://redirect.github.com/square/kotlinpoet/pull/1256) - [@​roihershberg](https://redirect.github.com/roihershberg) made their first contribution in [https://github.com/square/kotlinpoet/pull/1260](https://redirect.github.com/square/kotlinpoet/pull/1260) **Full Changelog**: https://github.com/square/kotlinpoet/compare/1.11.0...1.12.0 ### [`v1.11.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.11.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.10.2...1.11.0) Thanks to [@​liujingxing](https://redirect.github.com/liujingxing) and [@​BoD](https://redirect.github.com/BoD) for contributing to this release. - New: Kotlin scripting support in `FileSpec`. ```kotlin val spec = FileSpec.scriptBuilder("Taco") .addStatement("println(%S)", "hello world!") .addKotlinDefaultImports() .build() ``` Generates a Taco.kts file with the following contents: ```kotlin println("hello world!") ``` - 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 `CodeBlock`s 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`. ### [`v1.10.2`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.10.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.10.1...1.10.2) Thanks to [@​glureau](https://redirect.github.com/glureau) and [@​goooler](https://redirect.github.com/goooler) for contributing to this release. - \[[#​1175](https://redirect.github.com/square/kotlinpoet/issues/1175)] New: Switch `AnnotationSpec.get()` to use the `arrayOf()` syntax instead of `[]`. - \[[#​1170](https://redirect.github.com/square/kotlinpoet/issues/1170)] Fix: Don't wrap aliasing imports with long package names. - \[[#​1174](https://redirect.github.com/square/kotlinpoet/issues/1174)] Fix: Don't wrap type names inside line comments. - \[[#​1167](https://redirect.github.com/square/kotlinpoet/issues/1167)] Fix: Ignore Java's `@Deprecated` annotations on synthetic methods for annotations. ### [`v1.10.1`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.10.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.10.0...1.10.1) Thanks to [@​evant](https://redirect.github.com/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. ### [`v1.10.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.10.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.9.0...1.10.0) Thanks to [@​martinbonnin](https://redirect.github.com/martinbonnin), [@​idanakav](https://redirect.github.com/idanakav), [@​goooler](https://redirect.github.com/goooler), and [@​anandwana001](https://redirect.github.com/anandwana001) for contributing to this release. - New: Add a new [KSP](https://redirect.github.com/google/ksp) interop artifact. See [docs](https://square.github.io/kotlinpoet/interop-ksp/) for more details. - New: Add a new [JavaPoet](https://redirect.github.com/square/javapoet) interop artifact. See [docs](https://square.github.io/kotlinpoet/interop-javapoet/) for more details. - New: Allow copying a `ParameterizedTypeName` with new type arguments via new `copy()` overload. - kotlinx-metadata artifacts have been consolidated to a single `com.squareup:kotlinpoet-metadata` maven artifact. The previous `kotlinpoet-metadata-*` subartifacts are no longer published. - New: `TypeNameAliasTag` has been moved to KotlinPoet's main artifact under `TypeAliasTag`, for reuse with KSP interop. - `ImmutableKm*` classes have been removed. They were deemed to be a needless abstraction over the base `kotlinx-metadata` Km types. All usages of these should be substituted with their non-immutable base types. - Fix: Fix self-referencing type variables in metadata parsing. - Fix: Use delicate APIs rather than noisy logging ones when converting annotation mirrors in `AnnotationSpec.get`. - Fix: Update error message when metadata cannot be read to a more actionable one. - Fix: Avoid escaping already escaped strings. - Add docs about `kotlin-reflect` usage. - Avoid using kotlin-reflect for looking up `Unit` types where possible. - Test all the way up to JDK 17. - Update Kotlin to 1.5.31. ### [`v1.9.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/1.9.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.8.0...1.9.0) - New: Kotlin 1.5.10. - New: Previously deprecated API to interop with Java reflection and Mirror API have been un-deprecated and marked with `@DelicateKotlinPoetApi` annotation. - New: `CodeBlock.Builder.withIndent` helper function. - New: Allow changing initializers and default values in `ParameterSpec.Builder` and `PropertySpec.Builder` after they were set. - New: `MemberName.isExtension` property that instructs KotlinPoet to always import the member, even if conflicting declarations are present in the same scope. - Fix: Escape member names that only contain underscores. - Fix: Always emit an empty primary constructor if it was set via `TypeSpec.primaryConstructor`. ### [`v1.8.0`](https://redirect.github.com/square/kotlinpoet/compare/1.7.2...1.8.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.7.2...1.8.0) ### [`v1.7.2`](https://redirect.github.com/square/kotlinpoet/compare/1.7.1...1.7.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.7.1...1.7.2) ### [`v1.7.1`](https://redirect.github.com/square/kotlinpoet/compare/1.7.0...1.7.1) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.7.0...1.7.1) ### [`v1.7.0`](https://redirect.github.com/square/kotlinpoet/compare/1.6.0...1.7.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.6.0...1.7.0) ### [`v1.6.0`](https://redirect.github.com/square/kotlinpoet/compare/1.5.0...1.6.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.5.0...1.6.0) ### [`v1.5.0`](https://redirect.github.com/square/kotlinpoet/compare/1.4.4...1.5.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.4.4...1.5.0) ### [`v1.4.4`](https://redirect.github.com/square/kotlinpoet/compare/1.4.3...1.4.4) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.4.3...1.4.4) ### [`v1.4.3`](https://redirect.github.com/square/kotlinpoet/compare/1.4.2...1.4.3) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.4.2...1.4.3) ### [`v1.4.2`](https://redirect.github.com/square/kotlinpoet/compare/1.4.1...1.4.2) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.4.1...1.4.2)

Configuration

📅 Schedule: Branch creation - "every 3 weeks on Monday" (UTC), 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.



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

vlsi commented 11 months ago

kotlinpoet requries Kotlin 1.9 runtime: https://github.com/square/kotlinpoet/issues/1786