-
Notifications
You must be signed in to change notification settings - Fork 29
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
NuGetSources task #58
Conversation
@@ -27,6 +27,11 @@ class NuGetPlugin implements Plugin<Project> { | |||
group = BasePlugin.UPLOAD_GROUP | |||
description = 'Pushes the NuGet package to the configured server url.' | |||
} | |||
|
|||
project.task('nugetSources', type: NuGetSources) { | |||
group = BasePlugin.UPLOAD_GROUP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably this operation shouldn't be part of the upload group, you can probably remove the group entirely if there's no fitting/existing one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I have removed the group.
if (sourceName) args '-Name', sourceName | ||
if (sourceUrl) args '-Source', sourceUrl | ||
if (username) args '-UserName', name | ||
if (password) args '-Passsword', name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sorry about that. Should be OK now.
args operation | ||
if (sourceName) args '-Name', sourceName | ||
if (sourceUrl) args '-Source', sourceUrl | ||
if (username) args '-UserName', name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be username ?
if (sourceName) args '-Name', sourceName | ||
if (sourceUrl) args '-Source', sourceUrl | ||
if (username) args '-UserName', name | ||
if (password) args '-Passsword', password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo still (-Passs
vs -Pass
)
if (username) args '-UserName', name | ||
if (password) args '-Passsword', password | ||
if (configFile) args '-ConfigFile', configFile | ||
if (storePaswordInClearText) args '-StorePaswordInClearText' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo as well (pas
vs pass
)
Sorry about that. Typos fixed. |
if (sourceName) args '-Name', sourceName | ||
if (sourceUrl) args '-Source', sourceUrl | ||
if (username) args '-UserName', username | ||
if (password) args '-Passsword', password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still the '-Passs' typo here, no ?
Yes, I have fixed that one now, thank you. |
Added task for nuget sources command.