modmuss50 / mod-publish-plugin

A Gradle plugin to publish mods to a range of destinations
https://modmuss50.github.io/mod-publish-plugin/
MIT License
50 stars 7 forks source link

[Suggestion] Common dependencies #34

Closed IThundxr closed 7 months ago

IThundxr commented 7 months ago
publishMods {
<other stuff here>
    curseforge {
<other stuff here>
        requires {
            slug = "fabric-api"
        }
    }

    modrinth {
<other stuff here>
        requires {
            slug = "fabric-api"
        }
    }
}

Currently even if a dependency has the same slug on cf & mr you need to add it twice, would be cool to have a common dependency block that lets you add a dependency for both modrinth & curseforge at once ^^

Example:

publishMods {
<other stuff here>

    commonDeps {
            requires {
                slug = "fabric-api"
            }
        }

    curseforge {
<other stuff here>
    }

    modrinth {
<other stuff here>
    }
}
modmuss50 commented 7 months ago

Im not sure this is something we want. Right now there is a clear divide between each platform. Doing something like this assumes that the projects both have the same slug, and does not work for platforms such as github.

IThundxr commented 7 months ago

Yeah... but it would be pretty nice to have some shared options that could be used across mr & cf if the slugs match