/nuget-adapter

Nuget Artipie adapter

Primary LanguageJavaMIT LicenseMIT

License

This Java library turns your binary ASTO storage into a NuGet repository.

Similar solutions:

Some valuable references:

Getting started

Add dependency to pom.xml:

<dependency>
  <groupId>com.artipie</groupId>
  <artifactId>nuget-adapter</artifactId>
  <version>[...]</version>
</dependency>

Save NuGet package ZIP file like package.nupkg (particular name does not matter) to ASTO storage. Then, make an instance of Repository class with storage as an argument. Finally, instruct Repository to add the package to repository:

import com.artipie.nuget;
Repository repo = new Repository(storage);
repo.add(new Key.From("package.nupkg"));

Project status

  • Adding package to repository #1
  • HTTP support for installing package #19
  • HTTP support for adding package #20
  • HTTP support for listing package versions #29

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

To avoid build errors use Maven 3.2+.

The test suite of this project include some integration tests which require NuGet client to be installed. NuGet client may be downloaded from official site nuget.org. Integration tests could also be skipped using Maven's skipITs options:

$ mvn clean install -Pqulice -DskipITs