Skip to content

Commit

Permalink
fix: project id is optional for plugin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jan 20, 2025
1 parent 79c22ae commit 1a0a614
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.jetbrains.annotations.NotNull;

@AtLeastOneNotNull(fieldNames = {"name", "namespace"}, includeBlankStrings = true, message = "Must specify a name or namespace for a dependency")
public class PluginDependency implements Named, ProjectIdentified, Comparable<PluginDependency> {
public class PluginDependency implements Named, Comparable<PluginDependency> {

@Schema(description = "Name of the plugin dependency. For non-external dependencies, this should be the Hangar project name", example = "Maintenance")
private final String name;
Expand Down Expand Up @@ -50,8 +50,7 @@ private PluginDependency(final String name, final boolean required, final Platfo
this.platform = platform;
}

@Override
public long getProjectId() {
public Long getProjectId() {
return this.projectId;
}

Expand Down

0 comments on commit 1a0a614

Please sign in to comment.