#How To Configure Placeholders (Gradle?)?

1 messages · Page 1 of 1 (latest)

fallen bison
#

Hello. I am working on a MC mod and have never understood fully what gradle is or what it is actually doing.
I noticed in the templates I am using that some fields have placeholders like in this .toml block below:

[[dependencies]]
modId = "example_mod_id"
mandatory = true
versionRange = "[${em_version},)"

I want to use them more and develop my templates.

I understand that they are read from my gradle.properties file during the gradle process.

  • How do I use them?
  • What do I have to know to be able to set this up without a template? Is it configured in the build.gradle?

Any knowledge is appreciated 🙂

alpine swiftBOT
#

<@&987246652869971988> please have a look, thanks.

night ingot
#

gradle is a build and dependency tool

#

imagine ur program needs to copy some files around whenever u want to run it, gradle can do that

#

or create a file

#

or for example when u want to make a final launchable file (jar or exe), gradle can create that for u

#

or if u want to upload it somewhere (for example a library to maven central)

#

that's the build aspect at least

#

the dependency aspect is that it can download external code for u and add it to the project

#

that's what a lot of people use it for

#

(maven is an alternative to gradle btw)

fallen bison
#

Does it have anything to do with these placeholders? My template contains a file called gradle.properties that it uses.

#

Perhaps gradle is reading from it because my template uses a plugin, and I should be asking somehwere else?

alpine swiftBOT
#

Changed the category to Build Tools.

#

<@&987246554085740594> please have a look, thanks.

fallen bison
#

ty for changing the category

#

I am discovering that this is not a standard gradle feature, anyway.