Slurp mod version from json to avoid issues in IDE #113
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Steven/fabric-example-mod#113
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "liachmodded/feature/version-slurping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See FabricMC/fabric-loader#457
Signed-off-by: liach liach@users.noreply.github.com
I don't think this is suitable for the example mod - other mod properties are set in gradle.properties, it shouldn't be inverted for this one special thing. If auto-run of processResources is really so generally needed, then adding things like Idea's extension so that processResources being autorun will already be configured, or a possible loom change to make it so.
Some properties are set in
gradle.properties
others are set infabric.mod.json
. When using the example mod you'll end up editing both of these files eventually.For @dexman545, I don't think it's quite easy to set the run configurations' resource classpath to the output of processresources. If we can add a correct dependency on process resources for loom, it's good too, but doing it correctly is a bit hard.
I'm not sure about what loom can do, but it is worth mentioning as a possibility.
Yes, you modify both files - that does not change the fact that
gradle.properties
is the correct place for mod version to be set. Few people need this functionality that while it would be good to have, it should be a background thing in loom, not a reworking of the example mod.I don't buy into this gradle.properties argument, it obviously breaks in-dev use and alters the product in ways that are too extensive for a build system - a version is no build ID. Neither does it make a different to edit one file or another, having to change both is rare.
Running gradle in the IDE is not a solution, it turns instant run (esp. Eclipse) into waiting for gradle to start+finish and complicates the project setup.
Is this blocked until the loader version override is available or can this be merged already?
I added a thing to loom to do this nicely:
2c464cdef3
Will need to wait for a stable build of 0.10What about 0.7?
What do you mean? 0.10 is the version that is being developed atm and will be made stable once its ready. 0.7 was completed long ago.
So this feature is already in 0.7 for those of us who still use Java 8 versions?
If it's not, this should be changed:

I should update the site, 0.9 is recommended for everyone, you can still use it build mods for java 8 (see fabric API's 1.16 branch)
Checkout
From your project repository, check out a new branch and test the changes.