diff --git a/build.gradle b/build.gradle index bef2a78..1d31b85 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'com.github.johnrengelman.shadow' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. -version = "0.2.0" +version = "1.0.0" group = "matterlink" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "CivilEngineering" @@ -37,6 +37,9 @@ minecraft { // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20171003" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. + + replaceIn 'src/main/kotlin/matterlink/MatterLink.kt' + replace '@VERSION@', project.version } repositories { diff --git a/src/main/kotlin/matterlink/MatterLink.kt b/src/main/kotlin/matterlink/MatterLink.kt index 4a1a037..0235728 100644 --- a/src/main/kotlin/matterlink/MatterLink.kt +++ b/src/main/kotlin/matterlink/MatterLink.kt @@ -16,7 +16,7 @@ import java.util.* const val MODID = "matterlink" const val NAME = "MatterLink" -const val VERSION = "0.2.0" +const val VERSION = "@VERSION@" @Mod( modid = MODID, diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index a91119e..950a1ec 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -2,8 +2,8 @@ "modid": "matterlink", "name": "MatterLink", "description": "Minecraft Server Matterbridge link", - "version": "1.0", - "mcversion": "1.12.2", + "version": "${version}", + "mcversion": "${mcversion}", "authorList":["Arcanitor", "NikkyAi"], "credits": "Blame Nikky for talking me into this." }] \ No newline at end of file