Skip to content

emadel/gradle-nuget-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle NuGet Plugin Build status

This plugin allows to execute NuGet.exe from a gradle build. It also supports pack & push commands through built-in tasks, nugetPack, nugetPush & nugetRestore.

nugetPack

You can see this plugin being used for real on il-repack project. (together with msbuild one)

Sample usage:

buildscript {
    repositories {
      mavenCentral()
    }

    dependencies {
        classpath "com.ullink.gradle:gradle-nuget-plugin:2.1"
    }
}

apply plugin:'nuget'

nuget {
	// this Closure will be applied to the nuspec XMLBuilder
	nuspec {
		metadata() {
			id archivesBaseName
			delegate.version version
			title 'project title'
			authors 'Francois Valdy'
			delegate.description '''some looong description...'''
			// ...
		}
		delegate.files() {
			delegate.file(src: 'somefile', target: 'tools')
		}
	}
}

nugetRestore

Nuget restore is used to retrieve missing packages before starting the build

- Sample usage:

nugetRestore {
    projectFolder = path\to\project
	restoreFolder = location\for\package\restore
}

Where
 - projectFolder - could either contain the .sln file or the repositories.config file
 - restoreFolder - used only if a folder with repositories.config is used

License

All these plugins are licensed under the Apache License, Version 2.0 with no warranty (expressed or implied) for any purpose.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%