Skip to content

Supporting relative paths for custom toolchain locations #31659

@vmadalin

Description

@vmadalin

Expected Behavior

Toolchain resolves relative path defined under org.gradle.java.installations.paths and using them to find a matching toolchain with the defined criteria

Current Behavior (optional)

Right now when using relative paths for custom toolchain locations using org.gradle.java.installations.paths properties the following exception is thrown:

java.lang.UnsupportedOperationException: Cannot convert relative path ../jdk/jdk17/linux to an absolute file.

Context

Considering custom environments this option might be interesting known that such paths might be added under project gradle.properties being visible to VCS. This will benefit task/projects toolchain but also for the daemon toolchain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions