Skip to content

Commit

Permalink
Add support for environment versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkhax committed Jun 12, 2023
1 parent 81382e2 commit a51af58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.daemon=false
group=net.darkhax.curseforgegradle
version=1.0
version=1.1
archiveBaseName=CurseForgeGradle
description=Gradle plugin for uploading files to CurseForge projects.
vendor=Darkhax
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void fetchValidVersionTypes(String apiToken) {
for (final VersionType type : versionTypes) {

// TODO this is hardcoded to Minecraft. A more generic solution is required.
if (type.getSlug().startsWith("minecraft") || type.getSlug().equals("java") || type.getSlug().equals("modloader")) {
if (type.getSlug().startsWith("minecraft") || type.getSlug().equals("java") || type.getSlug().equals("modloader") || type.getSlug().equals("environment")) {

this.validVersionTypes.add(type.getId());
}
Expand Down

0 comments on commit a51af58

Please sign in to comment.