Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Enables AOT compilation and GraalVM native image builds for faster startup and reduced memory footprint.

Changes

Build configuration:

  • Added org.graalvm.buildtools.native plugin (v0.11.1)
  • Added aspectjweaver dependency for AOT/AspectJ compatibility
  • Configured native image build with metadata repository enabled
  • Disabled license checks on AOT-generated sources

Documentation:

  • Added bilingual guides (docs/contributing/AotAndNative.md, docs/en/contributing/AotAndNative.md) covering:
    • AOT compilation usage
    • Native image build requirements
    • Available Gradle tasks

Usage

# Standard build with AOT optimization
./gradlew build

# Build native executable
./gradlew nativeCompile

# Run native executable
./build/native/nativeCompile/bsl-language-server --analyze --src ./src

AOT processing generates ~299 optimized Java classes automatically during builds. Native compilation requires GraalVM JDK 17+ with native-image tool installed.

Original prompt

Подключение spring-native и aot-компиляция


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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


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

Copilot AI and others added 2 commits October 30, 2025 17:23
- Added org.graalvm.buildtools.native plugin version 0.11.1
- Added aspectjweaver dependency for AOT processing compatibility
- Configured graalvmNative block with build options
- Disabled license checks for AOT-generated sources
- Added mustRunAfter for license tasks to run after AOT processing

Co-authored-by: nixel2007 <[email protected]>
- Added comprehensive documentation for AOT compilation
- Added native image build instructions
- Documented requirements and usage
- Updated contributor index pages in both Russian and English

Co-authored-by: nixel2007 <[email protected]>
Copilot AI changed the title [WIP] Add spring-native and AOT compilation support Add Spring Native and AOT compilation support Oct 30, 2025
Copilot AI requested a review from nixel2007 October 30, 2025 17:45
Copilot finished work on behalf of nixel2007 October 30, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants