Itiviti / gradle-nuget-plugin

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

missing project task 'nugetInstall' in NuGetPlugin.groovy #39

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi, I was trying to use nugetinstall but noticed that the task is missing on the NuGetPlugin.groovy. As a workaround it's possible to invoke the NuGet.exe directly with a task with type:Exec through the method commandLine.

Sorry I can't contribute with a patch right now due to legal reasons.

gluck commented 8 years ago

The task type does exist but no default one is set when you apply nuget plugin.

You can use it though (e.g. it's used in pdbindex plugin), syntax should be similar, e.g.:

    project.task(type: com.ullink.NuGetInstall, "fooBarInstall") {
        packageId = 'fooBar'
        outputDirectory = someDir
        includeVersionInPath = false
        version = '1.0.0'
    }
ghost commented 8 years ago

Hi, thanks for that one :+1: Didn't know it could be done like this!