diff --git a/build.gradle b/build.gradle index 025f4c4..98b1040 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'com.gradle.plugin-publish' version '1.1.0' } -version = '2.7.3' +version = '2.7.4' group = 'com.modrinth.minotaur' archivesBaseName = 'Minotaur' description = 'Modrinth plugin for publishing builds to the website!' diff --git a/src/main/java/com/modrinth/minotaur/TaskModrinthUpload.java b/src/main/java/com/modrinth/minotaur/TaskModrinthUpload.java index cac5040..c45d9e3 100644 --- a/src/main/java/com/modrinth/minotaur/TaskModrinthUpload.java +++ b/src/main/java/com/modrinth/minotaur/TaskModrinthUpload.java @@ -118,10 +118,10 @@ public void apply() { if (!ext.getLoaders().get().contains("quilt") // don't count quilt-loom twice && getProject().getExtensions().findByName("loom") != null) { - String loomPlatform = getProject().getProviders().gradleProperty("loom.platform").getOrNull(); + Object loomPlatform = getProject().findProperty("loom.platform"); if (loomPlatform != null) { getLogger().debug("Adding loader '{}' because 'loom' extension was found and loom.platform={}.", loomPlatform, loomPlatform); - add(ext.getLoaders(), loomPlatform); + add(ext.getLoaders(), (String) loomPlatform); } else { getLogger().debug("Adding loader 'fabric' because 'loom' extension was found."); add(ext.getLoaders(), "fabric");