Class ProjectRelations
java.lang.Object
net.darkhax.curseforgegradle.api.metadata.ProjectRelations
An object that serves as a container for relationships to other projects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelationship(String slug, String type, @Nullable String id) Adds a new project relationship.Gets the set of project relationships.
-
Constructor Details
-
ProjectRelations
public ProjectRelations()
-
-
Method Details
-
addRelationship
Adds a new project relationship.- Parameters:
slug- The slug of the other project.type- The type of relation to add. SeeConstants.VALID_RELATION_TYPESfor types that are known to work.
-
getRelations
Gets the set of project relationships.- Returns:
- The set of project relationships.
-