Java Code Examples for org.jboss.forge.addon.dependencies.builder.CoordinateBuilder#setVersion()
The following examples show how to use
org.jboss.forge.addon.dependencies.builder.CoordinateBuilder#setVersion() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractFabricProjectCommand.java From fabric8-forge with Apache License 2.0 | 5 votes |
protected Coordinate createCoordinate(String groupId, String artifactId, String version, String packaging) { CoordinateBuilder builder = CoordinateBuilder.create() .setGroupId(groupId) .setArtifactId(artifactId); if (version != null) { builder = builder.setVersion(version); } if (packaging != null) { builder = builder.setPackaging(packaging); } return builder; }
Example 2
Source File: MavenHelpers.java From fabric8-forge with Apache License 2.0 | 5 votes |
public static Coordinate createCoordinate(String groupId, String artifactId, String version, String packaging) { CoordinateBuilder builder = CoordinateBuilder.create() .setGroupId(groupId) .setArtifactId(artifactId); if (version != null) { builder = builder.setVersion(version); } if (packaging != null) { builder = builder.setPackaging(packaging); } return builder; }
Example 3
Source File: AbstractCamelProjectCommand.java From fabric8-forge with Apache License 2.0 | 5 votes |
protected Coordinate createCoordinate(String groupId, String artifactId, String version) { CoordinateBuilder builder = CoordinateBuilder.create() .setGroupId(groupId) .setArtifactId(artifactId); if (version != null) { builder = builder.setVersion(version); } return builder; }