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

Possibility to manually create a Toolchain programmatically #16245

Open
Vampire opened this issue Feb 22, 2021 · 2 comments
Open

Possibility to manually create a Toolchain programmatically #16245

Vampire opened this issue Feb 22, 2021 · 2 comments
Labels
a:feature A new functionality in:toolchains Java Toolchains

Comments

@Vampire
Copy link
Contributor

Vampire commented Feb 22, 2021

It would be nice to have a way to construct a toolchain from an arbitrary path programmatically.
For example we have a task that constructs a custom Java distribution.
For some tasks I want this to be used and not the "normal" toolchain configured for the build as a whole.
Currently with Gradle 6.8.2 I have to feed an empty provider to the tool property to clear the value including convention and then use executable to set the executable.
It would be nice if instead the task could expose a provider with a manually constructed toolchain from its output path that can then be used to set the tool property.

@Vampire Vampire added a:feature A new functionality from:contributor labels Feb 22, 2021
@Vampire Vampire changed the title Possibility to manually create a ToolChain programmatically Possibility to manually create a Toolchain programmatically Feb 22, 2021
@ljacomet ljacomet added the in:toolchains Java Toolchains label Feb 22, 2021
@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Apr 17, 2022
@stale stale bot removed the stale label May 5, 2022
@bademux
Copy link

bademux commented Nov 3, 2022

The feature will be nice for cross platform tasks like Jlink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:toolchains Java Toolchains
Projects
None yet
Development

No branches or pull requests

4 participants