public class ProjectsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPENDENCY_FILE_FORMAT_VERSION |
| Constructor and Description |
|---|
ProjectsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBasename(String name) |
static String |
getDependencyFileContent(com.fasterxml.jackson.databind.node.ArrayNode jsonDependencies)
Get the dependency file content as a bas64 encoded string.
|
static List<org.apache.maven.artifact.Artifact> |
getFilteredDependencies(List<org.apache.maven.artifact.Artifact> artifacts,
String ignoredScopes)
Get a filtered list of dependencies, excluding the dependencies in the ignored scopes.
|
static com.fasterxml.jackson.databind.node.ArrayNode |
getJsonDependencies(List<org.apache.maven.artifact.Artifact> artifacts,
List<org.apache.maven.model.Dependency> directDependencies)
Add all dependencies to an ArrayNode.
|
public static final String DEPENDENCY_FILE_FORMAT_VERSION
public static String getDependencyFileContent(com.fasterxml.jackson.databind.node.ArrayNode jsonDependencies) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static List<org.apache.maven.artifact.Artifact> getFilteredDependencies(List<org.apache.maven.artifact.Artifact> artifacts, String ignoredScopes)
Copyright © 2023. All rights reserved.