com.ullink.NuGetPush.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-nuget-plugin Show documentation
Show all versions of gradle-nuget-plugin Show documentation
Gradle plugin for NuGet, to package, upload artifacts and restore packages.
package com.ullink
import java.util.List;
import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.StopActionException
import org.gradle.api.tasks.TaskAction
class NuGetPush extends BaseNuGet {
def nupkgFile
def Symbols
String serverUrl
String apiKey
String timeout
NuGetPush() {
super('push')
}
@Override
void verifyCommand() {
// TODO verify push, how ?
}
@Override
List extraCommands() {
def commandLineArgs = [nupkgFile]
if (serverUrl)
{
commandLineArgs += "-Source"
commandLineArgs += serverUrl
}
if (apiKey)
{
commandLineArgs += "-ApiKey"
commandLineArgs += apiKey
}
if (timeout)
{
commandLineArgs += "-Timeout"
commandLineArgs += timeout
}
return commandLineArgs
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy