diff --git a/build.gradle b/build.gradle index db21393..eec4108 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'com.gradle.plugin-publish' version '1.2.0' } -version = '2.8.6' +version = '2.8.7' group = 'com.modrinth.minotaur' archivesBaseName = 'Minotaur' description = 'Modrinth plugin for publishing builds to the website!' diff --git a/src/main/java/com/modrinth/minotaur/dependencies/container/NamedDependencyContainer.java b/src/main/java/com/modrinth/minotaur/dependencies/container/NamedDependencyContainer.java index ef833a4..bee604d 100644 --- a/src/main/java/com/modrinth/minotaur/dependencies/container/NamedDependencyContainer.java +++ b/src/main/java/com/modrinth/minotaur/dependencies/container/NamedDependencyContainer.java @@ -27,19 +27,23 @@ protected NamedDependencyContainer(NamedDomainObjectContainer c /** * Creates an incompatible Dependency Container and applies the projectId property * - * @param projectId the project id + * @param projectIds the project id(s) */ - public void project(final String projectId) { - this.dependencyContainer.add(new NamedDependency(projectId, null, this.dependencyType)); + public void project(final String... projectIds) { + for (String projectId : projectIds) { + this.dependencyContainer.add(new NamedDependency(projectId, null, this.dependencyType)); + } } /** * Creates a incompatible Dependency Container and applies the versionId property * - * @param versionId the version id + * @param versionIds the version id(s) */ - public void version(final String versionId) { - this.dependencyContainer.add(new NamedDependency(null, versionId, this.dependencyType)); + public void version(final String... versionIds) { + for (String versionId : versionIds) { + this.dependencyContainer.add(new NamedDependency(null, versionId, this.dependencyType)); + } } /**