All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ullink.NuGetPush.groovy Maven / Gradle / Ivy

There is a newer version: 2.18
Show newest version
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