Examples of GemVersion


Examples of de.saumya.mojo.gems.spec.GemVersion

        // the must ones
        result.setName(createGemName(artifact.getCoordinates().getGroupId(),
                                     artifact.getCoordinates().getArtifactId(),
                                     artifact.getCoordinates().getVersion()));
        result.setVersion(new GemVersion(createGemVersion(artifact.getCoordinates()
                .getVersion())));

        // dependencies
        if (artifact.getPom().getDependencies().size() > 0) {
            for (final Dependency dependency : artifact.getPom()
View Full Code Here

Examples of de.saumya.mojo.gems.spec.GemVersion

        // support Maven ranges too
        // based on
        // http://blog.zenspider.com/2008/10/rubygems-howto-preventing-cata.html
        final String version = createGemVersion(getDependencyVersion(artifact,
                                                                     dependency));
        final GemVersion gemVersion;
        if (version.matches("^[^.]+\\.[^.]+\\..*")) {
            // TODO maybe just takethe first two parts
            gemVersion = new GemVersion(version.substring(0, version.indexOf('.')) + ".0.a");
        }
        else {
            gemVersion = new GemVersion(version);
        }

        requirement.addRequirement("~>", gemVersion);

        result.setVersion_requirement(requirement);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.