jeremylong / packageurl-java

Java/JVM implementation of the package url spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status License

Package URL (purl) for Java

This project implements a purl parser and class for Java.

Compiling

mvn clean install

Maven Usage

Package URL is available on the Maven Central Repository. These can be used without having to compile the project yourself.

<dependencies>
    <dependency>
        <groupId>com.github.package-url</groupId>
        <artifactId>packageurl-java</artifactId>
        <version>1.0.0</version>
    </dependency>
</dependencies>

Usage

Creates a new PURL object from a string:

PackageURL purl = new PackageURL(purlString);

Creates a new PURL object from purl parameters:

PackageURL purl = new PackageURL(type, namespace, name, version, qualifiers, subpath);

License

Permission to modify and redistribute is granted under the terms of the MIT License

About

Java/JVM implementation of the package url spec

License:MIT License


Languages

Language:Java 99.0%Language:Shell 1.0%