net.minecraftforge.gitversion
Owner:
Blake Hanson
Provides versioning information based on git history and configurable subprojects
https://github.com/MinecraftForge/GradleUtils
Sources: https://github.com/MinecraftForge/GradleUtils.git
Version 2.4.6 (latest)
Created 16 March 2025.
Provides versioning information based on git history and configurable subprojects
Add this plugin to your build using the plugins DSL:
plugins {
id("net.minecraftforge.gitversion") version "2.4.6"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("net.minecraftforge.gitversion:net.minecraftforge.gitversion.gradle.plugin:2.4.6") }
It can then be applied in the precompiled script plugin:plugins { id("net.minecraftforge.gitversion") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("net.minecraftforge.gitversion:net.minecraftforge.gitversion.gradle.plugin:2.4.6") } } apply(plugin = "net.minecraftforge.gitversion")
- Applying plugins to all subprojects .