Skip to content

Commit

Permalink
fix(deps): update dependency com.squareup:kotlinpoet to v2 (#1690)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[com.squareup:kotlinpoet](https://redirect.github.com/square/kotlinpoet)
| `1.18.1` -> `2.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.squareup:kotlinpoet/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.squareup:kotlinpoet/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.squareup:kotlinpoet/1.18.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.squareup:kotlinpoet/1.18.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>square/kotlinpoet (com.squareup:kotlinpoet)</summary>

###
[`v2.0.0`](https://redirect.github.com/square/kotlinpoet/compare/1.18.1...2.0.0)

[Compare
Source](https://redirect.github.com/square/kotlinpoet/compare/1.18.1...2.0.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/typesafegithub/github-workflows-kt).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Piotr Krzeminski <git@krzeminski.it>
  • Loading branch information
renovate[bot] and krzema12 authored Oct 23, 2024
1 parent 7a3217e commit 8316b03
Show file tree
Hide file tree
Showing 15 changed files with 63 additions and 136 deletions.
2 changes: 1 addition & 1 deletion action-binding-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ group = rootProject.group
version = rootProject.version

dependencies {
implementation("com.squareup:kotlinpoet:1.18.1")
implementation("com.squareup:kotlinpoet:2.0.0")
implementation("it.krzeminski:snakeyaml-engine-kmp:3.0.2")
implementation("com.charleskorn.kaml:kaml:0.61.0")
implementation(projects.sharedInternal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ private fun Metadata.linkedMapOfInputs(
val propertyName = key.toCamelCase()
if (!untypedClass && inputTypings.containsKey(key)) {
val asStringCode = inputTypings.getInputTyping(key).asString()
add("%N?.let { %S·to·it$asStringCode },\n", propertyName, key)
add("%N?.let { %S to it$asStringCode },\n", propertyName, key)
}
val asStringCode = null.getInputTyping(key).asString()
if (value.shouldBeRequiredInBinding() && !value.shouldBeNullable(untypedClass, inputTypings.containsKey(key))) {
add("%S·to·%N$asStringCode,\n", key, "${propertyName}_Untyped")
add("%S to %N$asStringCode,\n", key, "${propertyName}_Untyped")
} else {
add("%N?.let { %S·to·it$asStringCode },\n", "${propertyName}_Untyped", key)
add("%N?.let { %S to it$asStringCode },\n", "${propertyName}_Untyped", key)
}
}
add("*$CUSTOM_INPUTS.%M().%M(),\n", Types.mapToList, Types.listToArray)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ import kotlin.collections.toTypedArray
* @param listEnums_Untyped List of enums
* @param listIntSpecial List of integer with special values
* @param listIntSpecial_Untyped List of integer with special values
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithAllTypesOfInputs private constructor(
Expand Down Expand Up @@ -162,12 +160,10 @@ public data class ActionWithAllTypesOfInputs private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<ActionWithAllTypesOfInputs.Outputs>("john-smith",
"action-with-all-types-of-inputs", _customVersion ?: "v3") {
) : RegularAction<ActionWithAllTypesOfInputs.Outputs>("john-smith", "action-with-all-types-of-inputs", _customVersion ?: "v3") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
Expand Down Expand Up @@ -267,15 +263,7 @@ public data class ActionWithAllTypesOfInputs private constructor(
listIntSpecial_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped =
bazGoo_Untyped, binKin = binKin, binKin_Untyped = binKin_Untyped, intPint = intPint,
intPint_Untyped = intPint_Untyped, floPint = floPint, floPint_Untyped = floPint_Untyped,
finBin = finBin, finBin_Untyped = finBin_Untyped, gooZen = gooZen, gooZen_Untyped =
gooZen_Untyped, bahEnum = bahEnum, bahEnum_Untyped = bahEnum_Untyped, listStrings =
listStrings, listStrings_Untyped = listStrings_Untyped, listInts = listInts,
listInts_Untyped = listInts_Untyped, listEnums = listEnums, listEnums_Untyped =
listEnums_Untyped, listIntSpecial = listIntSpecial, listIntSpecial_Untyped =
listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, bazGoo = bazGoo, bazGoo_Untyped = bazGoo_Untyped, binKin = binKin, binKin_Untyped = binKin_Untyped, intPint = intPint, intPint_Untyped = intPint_Untyped, floPint = floPint, floPint_Untyped = floPint_Untyped, finBin = finBin, finBin_Untyped = finBin_Untyped, gooZen = gooZen, gooZen_Untyped = gooZen_Untyped, bahEnum = bahEnum, bahEnum_Untyped = bahEnum_Untyped, listStrings = listStrings, listStrings_Untyped = listStrings_Untyped, listInts = listInts, listInts_Untyped = listInts_Untyped, listEnums = listEnums, listEnums_Untyped = listEnums_Untyped, listIntSpecial = listIntSpecial, listIntSpecial_Untyped = listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand All @@ -302,8 +290,7 @@ public data class ActionWithAllTypesOfInputs private constructor(
listInts_Untyped?.let { "list-ints" to it },
listEnums?.let { "list-enums" to it.joinToString(",") { it.stringValue } },
listEnums_Untyped?.let { "list-enums" to it },
listIntSpecial?.let { "list-int-special" to it.joinToString(",") {
it.integerValue.toString() } },
listIntSpecial?.let { "list-int-special" to it.joinToString(",") { it.integerValue.toString() } },
listIntSpecial_Untyped?.let { "list-int-special" to it },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ import kotlin.collections.toTypedArray
* @param listInts_Untyped List of integers
* @param listEnums_Untyped List of enums
* @param listIntSpecial_Untyped List of integer with special values
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@Deprecated(
"Use the typed class instead",
Expand Down Expand Up @@ -123,12 +121,10 @@ public data class ActionWithAllTypesOfInputs_Untyped private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<ActionWithAllTypesOfInputs_Untyped.Outputs>("john-smith",
"action-with-all-types-of-inputs", _customVersion ?: "v3") {
) : RegularAction<ActionWithAllTypesOfInputs_Untyped.Outputs>("john-smith", "action-with-all-types-of-inputs", _customVersion ?: "v3") {
public constructor(
vararg pleaseUseNamedArguments: Unit,
fooBar_Untyped: String,
Expand All @@ -145,12 +141,7 @@ public data class ActionWithAllTypesOfInputs_Untyped private constructor(
listIntSpecial_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(fooBar_Untyped = fooBar_Untyped, bazGoo_Untyped = bazGoo_Untyped, binKin_Untyped =
binKin_Untyped, intPint_Untyped = intPint_Untyped, floPint_Untyped = floPint_Untyped,
finBin_Untyped = finBin_Untyped, gooZen_Untyped = gooZen_Untyped, bahEnum_Untyped =
bahEnum_Untyped, listStrings_Untyped = listStrings_Untyped, listInts_Untyped =
listInts_Untyped, listEnums_Untyped = listEnums_Untyped, listIntSpecial_Untyped =
listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)
) : this(fooBar_Untyped = fooBar_Untyped, bazGoo_Untyped = bazGoo_Untyped, binKin_Untyped = binKin_Untyped, intPint_Untyped = intPint_Untyped, floPint_Untyped = floPint_Untyped, finBin_Untyped = finBin_Untyped, gooZen_Untyped = gooZen_Untyped, bahEnum_Untyped = bahEnum_Untyped, listStrings_Untyped = listStrings_Untyped, listInts_Untyped = listInts_Untyped, listEnums_Untyped = listEnums_Untyped, listIntSpecial_Untyped = listIntSpecial_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ import kotlin.collections.toTypedArray
*
* @param fooBar &lt;required&gt; Foo bar - new
* @param fooBar_Untyped &lt;required&gt; Foo bar - new
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithDeprecatedInputAndNameClash private constructor(
Expand All @@ -48,12 +46,10 @@ public data class ActionWithDeprecatedInputAndNameClash private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("john-smith", "action-with-deprecated-input-and-name-clash",
_customVersion ?: "v2") {
) : RegularAction<Action.Outputs>("john-smith", "action-with-deprecated-input-and-name-clash", _customVersion ?: "v2") {
init {
require(!((fooBar != null) && (fooBar_Untyped != null))) {
"Only fooBar or fooBar_Untyped must be set, but not both"
Expand All @@ -69,8 +65,7 @@ public data class ActionWithDeprecatedInputAndNameClash private constructor(
fooBar_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs,
_customVersion = _customVersion)
) : this(fooBar = fooBar, fooBar_Untyped = fooBar_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ import kotlin.collections.toTypedArray
* @param nestedKotlinComments_Untyped This is a /&#42; test &#42;/
* @param percent For example "100%"
* @param percent_Untyped For example "100%"
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithFancyCharsInDocs private constructor(
Expand All @@ -58,12 +56,10 @@ public data class ActionWithFancyCharsInDocs private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("john-smith", "action-with-fancy-chars-in-docs", _customVersion ?:
"v3") {
) : RegularAction<Action.Outputs>("john-smith", "action-with-fancy-chars-in-docs", _customVersion ?: "v3") {
init {
require(!((nestedKotlinComments != null) && (nestedKotlinComments_Untyped != null))) {
"Only nestedKotlinComments or nestedKotlinComments_Untyped must be set, but not both"
Expand All @@ -82,9 +78,7 @@ public data class ActionWithFancyCharsInDocs private constructor(
percent_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(nestedKotlinComments = nestedKotlinComments, nestedKotlinComments_Untyped =
nestedKotlinComments_Untyped, percent = percent, percent_Untyped = percent_Untyped,
_customInputs = _customInputs, _customVersion = _customVersion)
) : this(nestedKotlinComments = nestedKotlinComments, nestedKotlinComments_Untyped = nestedKotlinComments_Untyped, percent = percent, percent_Untyped = percent_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ import kotlin.collections.toTypedArray
* @param fooOne_Untyped &lt;required&gt;
* @param fooTwo &lt;required&gt;
* @param fooTwo_Untyped &lt;required&gt;
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithInputsSharingType private constructor(
Expand All @@ -61,12 +59,10 @@ public data class ActionWithInputsSharingType private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("john-smith", "action-with-inputs-sharing-type", _customVersion ?:
"v3") {
) : RegularAction<Action.Outputs>("john-smith", "action-with-inputs-sharing-type", _customVersion ?: "v3") {
init {
require(!((fooOne != null) && (fooOne_Untyped != null))) {
"Only fooOne or fooOne_Untyped must be set, but not both"
Expand Down Expand Up @@ -97,9 +93,7 @@ public data class ActionWithInputsSharingType private constructor(
fooThree_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(fooOne = fooOne, fooOne_Untyped = fooOne_Untyped, fooTwo = fooTwo, fooTwo_Untyped =
fooTwo_Untyped, fooThree = fooThree, fooThree_Untyped = fooThree_Untyped, _customInputs
= _customInputs, _customVersion = _customVersion)
) : this(fooOne = fooOne, fooOne_Untyped = fooOne_Untyped, fooTwo = fooTwo, fooTwo_Untyped = fooTwo_Untyped, fooThree = fooThree, fooThree_Untyped = fooThree_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ import kotlin.collections.Map
*
* [Action on GitHub](https://github.com/john-smith/action-with-no-inputs)
*
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithNoInputs private constructor(
Expand All @@ -36,8 +34,7 @@ public data class ActionWithNoInputs private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("john-smith", "action-with-no-inputs", _customVersion ?: "v3") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ import kotlin.collections.toTypedArray
*
* [Action on GitHub](https://github.com/john-smith/action-with-no-typings)
*
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
* version, or a newer version that the binding doesn't yet know about
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
@ExposedCopyVisibility
public data class ActionWithNoTypings_Untyped private constructor(
Expand All @@ -60,8 +58,7 @@ public data class ActionWithNoTypings_Untyped private constructor(
*/
public val _customInputs: Map<String, String> = mapOf(),
/**
* Allows overriding action's version, for example to use a specific minor version, or a newer
* version that the binding doesn't yet know about
* Allows overriding action's version, for example to use a specific minor version, or a newer version that the binding doesn't yet know about
*/
public val _customVersion: String? = null,
) : RegularAction<Action.Outputs>("john-smith", "action-with-no-typings", _customVersion ?: "v3") {
Expand All @@ -71,8 +68,7 @@ public data class ActionWithNoTypings_Untyped private constructor(
bar_Untyped: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, _customInputs = _customInputs,
_customVersion = _customVersion)
) : this(foo_Untyped = foo_Untyped, bar_Untyped = bar_Untyped, _customInputs = _customInputs, _customVersion = _customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand Down
Loading

0 comments on commit 8316b03

Please sign in to comment.