mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 20:27:02 -05:00
Add loom.modVersion to read the version from the fabric.mod.json file. (#489)
This commit is contained in:
@@ -196,4 +196,12 @@ public interface LoomGradleExtensionAPI {
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
void disableDeprecatedPomGeneration(MavenPublication publication);
|
||||
|
||||
/**
|
||||
* Reads the mod version from the fabric.mod.json file located in the main sourcesets resources.
|
||||
* This is useful if you want to set the gradle version based of the version in the fabric.mod.json file.
|
||||
*
|
||||
* @return the version defined in the fabric.mod.json
|
||||
*/
|
||||
String getModVersion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user