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

Kotlin DSL plugins {} block interpreter works in all supported cases #64

Open
eskatos opened this issue Jun 20, 2023 · 0 comments
Open

Comments

@eskatos
Copy link
Member

eskatos commented Jun 20, 2023

The Kotlin DSL plugins {} block interpreter bypasses the Kotlin compiler when compiling scripts is required and the plugins {} block is declarative only. This provides substantial performance improvements when preconditions are met.

The first version introduced in Gradle 8.0 only supports a few constructs available in the plugins {} block. For example the usage of version catalog aliases is not supported. In such cases Gradle falls back to invoking the Kotlin compiler.

As part of this we could consider warning if the optimization cannot be applied.

The optimization could also be applied to precompiled scripts.

@eskatos eskatos converted this from a draft issue Jun 20, 2023
@eskatos eskatos moved this from Q4 2023 to 2024 in Gradle Build Tool roadmap Nov 6, 2023
@pioterj pioterj moved this from 2024 to Later in Gradle Build Tool roadmap Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant