Itiviti / gradle-nuget-plugin

Executes NuGet from a gradle build
Apache License 2.0
22 stars 29 forks source link

Allow ad-hoc location to NuGet Executable #64

Closed ghost closed 6 years ago

ghost commented 6 years ago

Can the BaseNuGet.groovy be updated so that if user specifies relative/absolute path to NuGet via an executable Exec property, the default search mechanism should be bypassed?

nugetRestore { executable "nuget\nuget-4.6.2.exe" }

timotei commented 6 years ago

@tomasjin There is a PR opened that does what you want: https://github.com/Ullink/gradle-nuget-plugin/pull/62

imanushin commented 6 years ago

@tomasjin , it is in review now. Could you please also check is it api useful for you?

Please see nugetExePath option here: https://github.com/imanushin/gradle-nuget-plugin/blob/3d9b2d0fd042e1d3484c9b18e001d0dc4dfff1c7/README.md

ghost commented 6 years ago

The API looks much better now as most CI/CD servers are behind firewall. Many thanks for the new API.