Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ propertyDefaultIfUnset("modrinthRelations", "")
propertyDefaultIfUnsetWithEnvVar("curseForgeProjectId", "", "CURSEFORGE_PROJECT_ID")
propertyDefaultIfUnset("curseForgeRelations", "")
propertyDefaultIfUnsetWithEnvVar("releaseType", "release", "RELEASE_TYPE")
propertyDefaultIfUnset("clientEnvironment", true)
propertyDefaultIfUnset("serverEnvironment", true)
propertyDefaultIfUnset("generateDefaultChangelog", false)
propertyDefaultIfUnset("customMavenPublishUrl", "")
propertyDefaultIfUnset("mavenArtifactGroup", getDefaultArtifactGroup())
Expand Down Expand Up @@ -1207,6 +1209,12 @@ if (cfApiKey.isPresent() || deploymentDebug.toBoolean()) {
mainFile.addModLoader 'Forge'
mainFile.addJavaVersion "Java 8"
mainFile.addGameVersion minecraftVersion
if (serverEnvironment.toBoolean()) {
mainFile.addEnvironment "Server"
}
if (clientEnvironment.toBoolean()) {
mainFile.addEnvironment "Client"
}

if (curseForgeRelations.size() != 0) {
String[] deps = curseForgeRelations.split(';')
Expand Down
8 changes: 8 additions & 0 deletions buildscript.properties
Comment thread
bruberu marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ separateRunDirectories = false
# Default: $MOD_NAME \u2212 $VERSION. \u2212 is the minus character which looks much better than the hyphen minus on Curse.
versionDisplayFormat = $MOD_NAME \u2212 $VERSION

# Mark release for running in a client environment. (This currently only applies to Curse publications.)
# Set to false for server-only mods.
clientEnvironment = true

# Mark release for running in a server environment. (This currently only applies to Curse publications.)
# Set to false for client-only mods.
serverEnvironment = true

# Publishing to modrinth requires you to set the MODRINTH_API_KEY environment variable to your current modrinth API token.

# The project's ID on Modrinth. Can be either the slug or the ID.
Expand Down