gradle.properties - noobanidus/gradlehax GitHub Wiki

Initial _version variables are optional and their definition enables specific modules (such as the shadow module for Registrate and Noobutil, jei for JEI, etc). Most _version variables are defined as minecraft_version-depdency_version.

As appropriate, substitute your group, mod version and mod information as necessary.

For CurseForge support, you will need to ensure that all the necessary variables are filled in. See the curseforge.gradle module for specific information. For obvious security reasons, you will want to store your authentication tokens in your $GRADLE_HOME/gradle.properties rather than in the project.

As Patreon authentication is generally defined in the global $GRADLE_HOME/gradle.properties, you can disable Patreon integration by defining patreon_disabled=true.

See build.gradle for the example build file.

registrate_version=MC1.16.5-1.0.4
noobutil_version=1.16.4-0.0.8.67
patchouli_version=1.16.4-48
jei_version=1.16.4:7.6.0.57
group=mysticmods.mysticalworld
version=0.3.2.14

mod_name=Mystical World
mod_author=Noobanidus, EpicSquid, Martacus, Davoleo
mod_id=mysticalworld
mod_homepage=https://www.curseforge.com/minecraft/mc-mods/mystical-world
mod_source=https://github.com/MysticMods/MysticalWorld
mod_issues=https://github.com/MysticMods/MysticalWorld/issues
mod_description=Adding light Vanilla+ features to make your world more mystical!
mod_license=https://github.com/MysticMods/MysticalWorld/blob/1.16/LICENSE
# This should be equivalent to the `XXX.mixins.json` file. Simply do not define this variable if mixins aren't required.
mixin_id=mysticalworld

# ForgeGradle properties (gradle/forge.gradle)
minecraft_version=1.16.5
forge_version=36.1.24
forge_at=src/main/resources/META-INF/accesstransformer.cfg
# Removing these will cause mappings to default to Mojmap.
forge_mapping_channel=snapshot
forge_mapping_version=20201028-1.16.3

# CurseForge properties (gradle/curseforge.gradle)
curse_project=282940
curse_page=https://www.curseforge.com/minecraft/mc-mods/mystical-world
curse_release_type=release
curse_versions=1.16.4, 1.16.5
curse_requirements=patchouli

# API settings, simply do not declare this if you do not wish to define an API task.
api=mysticmods/mysticalworld/api/**

# Are we running on Jenkins?
jenkins = true

# Dynamic Trees
dynamic_trees_version=0.10.0-Beta13
dynamic_trees_plus_version=0.1.0-Beta8
# This variable determines whether dynamic trees is compiled and applied at runtime, or merely compiled against.
dynamic_trees=true

# Set this to the commit equivalent of the most recent release or remove. Environmental variable GIT_PREVIOUS_COMMIT can be used instead on appropriate platforms, but PowerShell seems to dislike inline definitions.
git_previous_commit=7f748c9f039a05d8e036b390e551cf14be0a8dee