Itiviti / gradle-nuget-plugin

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

Allow overriding package version from script #69

Closed citizenmatt closed 6 years ago

citizenmatt commented 6 years ago

Hello. Hope you don't mind a surprise PR!

I hit a problem with the nugetPack task because I want to push the version of the package from my build script (via CI, etc). I've added a packageVersion property to nugetPack which will override the version in the nuspec file (mine is $version$, which would also cause problems!) and will fall back to the version in the nuspec or the project version, as before.

gluck commented 6 years ago

LGTM, thx ! :shipit: