hotfix: added AOT #35

Merged
devitq merged 2 commits from hotfix/add-aot into develop 2026-04-30 08:35:08 +00:00
devitq commented 2026-04-30 08:34:15 +00:00 (Migrated from github.com)
No description provided.
coderabbitai[bot] commented 2026-04-30 08:34:23 +00:00 (Migrated from github.com)

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

βš™οΈ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Free

Run ID: f54b34b1-e51c-491e-96f7-07ba8f4f466b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • πŸ” Trigger review

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- This is an auto-generated comment: skip review by coderabbit.ai --> > [!IMPORTANT] > ## Review skipped > > Auto reviews are disabled on base/target branches other than the default branch. > > > > Please check the settings in the CodeRabbit UI or the `.coderabbit.yaml` file in this repository. To trigger a single review, invoke the `@coderabbitai review` command. > > <details> > <summary>βš™οΈ Run configuration</summary> > > **Configuration used**: Organization UI > > **Review profile**: ASSERTIVE > > **Plan**: Free > > **Run ID**: `f54b34b1-e51c-491e-96f7-07ba8f4f466b` > > </details> > > You can disable this status message by setting the `reviews.review_status` to `false` in the CodeRabbit configuration file. > > Use the checkbox below for a quick retry: > - [ ] <!-- {"checkboxId": "e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> πŸ” Trigger review <!-- end of auto-generated comment: skip review by coderabbit.ai --> <!-- tips_start --> --- > [!NOTE] > <details> > <summary>🎁 Summarized by CodeRabbit Free</summary> > > Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting <https://app.coderabbit.ai/login>. > > </details> <sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub> <!-- tips_end -->
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2026-04-30 08:38:08 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull request overview

Adds Spring AOT support to the project build and container runtime, aiming to produce and run an AOT-enabled Spring Boot artifact in the Docker image.

Changes:

  • Apply Spring Boot AOT plugin in Gradle.
  • Update container build step to run bootJar instead of build with multiple excluded tasks.
  • Enable Spring AOT at runtime in the container via env var + JVM system property.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment.

File Description
build.gradle.kts Attempts to enable Spring Boot AOT via plugin application.
Containerfile Builds only the bootable jar and enables AOT at runtime via -Dspring.aot.enabled.
.idea/kotlinc.xml Aligns IntelliJ Kotlin JPS version with the Gradle Kotlin version catalog.
Files not reviewed (1)
  • .idea/kotlinc.xml: Language not supported

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Pull request overview Adds Spring AOT support to the project build and container runtime, aiming to produce and run an AOT-enabled Spring Boot artifact in the Docker image. **Changes:** - Apply Spring Boot AOT plugin in Gradle. - Update container build step to run `bootJar` instead of `build` with multiple excluded tasks. - Enable Spring AOT at runtime in the container via env var + JVM system property. ### Reviewed changes Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment. | File | Description | | ---- | ----------- | | build.gradle.kts | Attempts to enable Spring Boot AOT via plugin application. | | Containerfile | Builds only the bootable jar and enables AOT at runtime via `-Dspring.aot.enabled`. | | .idea/kotlinc.xml | Aligns IntelliJ Kotlin JPS version with the Gradle Kotlin version catalog. | <details> <summary>Files not reviewed (1)</summary> * **.idea/kotlinc.xml**: Language not supported </details> --- πŸ’‘ <a href="/devitq/movienight-backend/new/main?filename=.github/instructions/*.instructions.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add Copilot custom instructions</a> for smarter, more guided reviews. <a href="https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn how to get started</a>.
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2026-04-30 08:38:07 +00:00

The runtime image enables AOT by default (SPRING_AOT_ENABLED=true) and forces -Dspring.aot.enabled=${SPRING_AOT_ENABLED}, but the build stage only runs bootJar. Unless an AOT generation task (e.g., processAot / AOT-specific bootJar wiring) is executed and its output is packaged, the app may fail to start with AOT enabled. Either ensure the Docker build runs the required AOT task(s) before packaging, or default this flag off until the jar is guaranteed to include AOT artifacts.

    SPRING_AOT_ENABLED=false \
The runtime image enables AOT by default (`SPRING_AOT_ENABLED=true`) and forces `-Dspring.aot.enabled=${SPRING_AOT_ENABLED}`, but the build stage only runs `bootJar`. Unless an AOT generation task (e.g., `processAot` / AOT-specific bootJar wiring) is executed and its output is packaged, the app may fail to start with AOT enabled. Either ensure the Docker build runs the required AOT task(s) before packaging, or default this flag off until the jar is guaranteed to include AOT artifacts. ```suggestion SPRING_AOT_ENABLED=false \ ```
Sign in to join this conversation.