You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the foojay disco API returns something like this in the JSON response: https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-fx-jdk11.0.15-macosx_x64.dmg
I may need to translate that to https://internal-proxy.mycorp.com/azul-cdn/zulu/bin/zulu11.56.19-ca-fx-jdk11.0.15-macosx_x64.dmg before gradle tries to use that URI.
Please provide a plugin extenstion API that will allow me to add my own translation
Something like this:
foojayToolchains {
translateDownloadUri { uri:URI->// custom logic for translating to https://internal-proxy.mycorp.com/return translatedUri
}
}
The text was updated successfully, but these errors were encountered:
@yogurtearl one thing you could do to have the functionality you describe is to just reuse the logic from FoojayApi.toUri() (it's at GAV coordinates org.gradle.toolchains:foojay-resolver:0.1 in the https://plugins.gradle.org/m2/ Maven repo) and then, based on that write your own Toolchain Resolver Plugin, which would add the URI translation you need.
I don't think we would implement the translation capability ourselves at the moment (primarily due to lack of resources). Even if we would, I think it would end up as a generic toolchain auto-provisioning feature and not specific to the Foojay resolver plugin. So, if you feel very strongly about it, then pls. file an issue on gradle/gradle.
If the foojay disco API returns something like this in the JSON response:
https://cdn.azul.com/zulu/bin/zulu11.56.19-ca-fx-jdk11.0.15-macosx_x64.dmg
I may need to translate that to
https://internal-proxy.mycorp.com/azul-cdn/zulu/bin/zulu11.56.19-ca-fx-jdk11.0.15-macosx_x64.dmg
before gradle tries to use that URI.Please provide a plugin extenstion API that will allow me to add my own translation
Something like this:
The text was updated successfully, but these errors were encountered: