Skip to content
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

Move empty arrays to static variables #10539

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

altro3
Copy link
Contributor

@altro3 altro3 commented Feb 24, 2024

No description provided.

@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label Feb 24, 2024
@sdelamo sdelamo merged commit 1ab87c5 into micronaut-projects:4.3.x Feb 24, 2024
grayc-de-bot pushed a commit to inoa-io/inoa-cloud that referenced this pull request Mar 8, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [io.micronaut:micronaut-inject-java](https://micronaut.io) ([source](https://github.com/micronaut-projects/micronaut-core)) |  | patch | `4.3.9` -> `4.3.10` |
| [io.micronaut:micronaut-inject-java](https://micronaut.io) ([source](https://github.com/micronaut-projects/micronaut-core)) | compile | patch | `4.3.9` -> `4.3.10` |

---

> ⚠ **Warning**
>
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>micronaut-projects/micronaut-core (io.micronaut:micronaut-inject-java)</summary>

### [`v4.3.10`](https://github.com/micronaut-projects/micronaut-core/releases/tag/v4.3.10): Micronaut Core 4.3.10

[Compare Source](micronaut-projects/micronaut-core@v4.3.9...v4.3.10)

<!-- Release notes generated using configuration in .github/release.yml at 4.3.x -->

##### What's Changed

##### Bug Fixes 🐞

-   KSP: Allow to detect repeatable annotations using reflection by [@&#8203;dstepanov](https://github.com/dstepanov) in micronaut-projects/micronaut-core#10576

##### Improvements ⭐

-   Move empty arrays to static variables by [@&#8203;altro3](https://github.com/altro3) in micronaut-projects/micronaut-core#10539

##### Other Changes 💡

-   tck: don’t depend on jackson databind by [@&#8203;sdelamo](https://github.com/sdelamo) in micronaut-projects/micronaut-core#10546

##### Dependency updates 🚀

-   fix(deps): update groovy monorepo to v4.0.19 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10567
-   fix(deps): update dependency com.github.javaparser:javaparser-symbol-solver-core to v3.25.9 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10571
-   fix(deps): update dependency ch.qos.logback:logback-classic to v1.5.3 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10583
-   fix(deps): update managed.ksp to v1.9.22-1.0.18 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10577
-   fix(deps): update dependency org.testcontainers:spock to v1.19.7 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10540
-   fix(deps): update dependency com.squareup.okio:okio to v3.8.0 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10481

##### Micronaut Modules

##### Micronaut Validation

-   fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.4.3 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10560

##### Micronaut AWS

-   fix(deps): update dependency io.micronaut.aws:micronaut-aws-bom to v4.4.2 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10548

##### CI ⚙️Build 🐘

##### GraalVM

-   Update graalvm/setup-graalvm action to v1.1.8 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10530

##### Micronaut Build Plugin

-   chore(deps): update plugin io.micronaut.build.shared.settings to v6.6.4 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10566
-   chore(deps): update dependency io.micronaut.build.internal:micronaut-gradle-plugins to v6.6.4 by [@&#8203;renovate](https://github.com/renovate) in micronaut-projects/micronaut-core#10565

**Full Changelog**: micronaut-projects/micronaut-core@v4.3.9...v4.3.10

</details>

---

### Configuration

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

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

♻ **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 these updates again.

---

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzEuMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: https://git.grayc.io/inoa/cloud/pulls/78
Reviewed-by: Stephan Schnabel <stephan.schnabel@grayc.de>
Co-authored-by: Renovate <renovate@grayc.io>
Co-committed-by: Renovate <renovate@grayc.io>
timyates added a commit that referenced this pull request Mar 11, 2024

Verified

This commit was signed with the committer’s verified signature.
timyates Tim Yates
When we have a Graal/Kotlin/Maven project we add micronaut-graal to the Kapt annotation processor paths.

When we moved empty arrays to static variables in #10539, we added a requirement for micronaut-core to be also on the classpath.

This PR breaks that requirement, so just adding micronaut-graal to the processors is enough.
sdelamo pushed a commit that referenced this pull request Mar 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
When we have a Graal/Kotlin/Maven project we add micronaut-graal to the Kapt annotation processor paths.

When we moved empty arrays to static variables in #10539, we added a requirement for micronaut-core to be also on the classpath.

This PR breaks that requirement, so just adding micronaut-graal to the processors is enough.
timyates added a commit that referenced this pull request Mar 12, 2024

Verified

This commit was signed with the committer’s verified signature.
timyates Tim Yates
This reverts commit 36ef6b9.

This PR #10597 was an attempt to fix Maven, Graal and Kapt, but it was in error...

The issue wasn't that micronaut-graal was calling micronaut-core.
The issue was that the Kotlin processor had both Micronaut-core 4.3.1 and 4.3.10 in the classpath.

Due to the unique way Maven deals with resolution issues (it just picks the first one it sees), this meant that the processor couldn't see the variables added and renamed in #10539.

And for Kapt, there's nothing we can do to manage this (apart from add every module in micronaut-core to the annotationProcessorPaths).

We are testing fixing it by re-releasing processors with the 4.3.10 version of core.
sdelamo pushed a commit that referenced this pull request Mar 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
This reverts commit 36ef6b9.

This PR #10597 was an attempt to fix Maven, Graal and Kapt, but it was in error...

The issue wasn't that micronaut-graal was calling micronaut-core.
The issue was that the Kotlin processor had both Micronaut-core 4.3.1 and 4.3.10 in the classpath.

Due to the unique way Maven deals with resolution issues (it just picks the first one it sees), this meant that the processor couldn't see the variables added and renamed in #10539.

And for Kapt, there's nothing we can do to manage this (apart from add every module in micronaut-core to the annotationProcessorPaths).

We are testing fixing it by re-releasing processors with the 4.3.10 version of core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants