Skip to content

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

@eskatos

Description

@eskatos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions