From 14a684e3cf336f9d2214e6e0903433806a784cae Mon Sep 17 00:00:00 2001 From: glowredman <35727266+glowredman@users.noreply.github.com> Date: Mon, 16 Jan 2023 23:38:53 +0100 Subject: Add Version Token Replacment for API (#266) * Change version token for main api * Enable version token replacement for api info Former-commit-id: ff47528934261eb0e57d871bb2c81867e806489c --- gradle.properties | 2 +- src/main/java/com/github/bartimaeusnek/bartworks/API/API_REFERENCE.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 973bce915d..6fa91ac230 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ developmentEnvironmentUserName = Developer # The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's # version in @Mod([...], version = VERSION, [...]) # Leave these properties empty to skip individual token replacements -replaceGradleTokenInFile = MainMod.java +replaceGradleTokenInFile = MainMod.java,API_REFERENCE.java gradleTokenModId = gradleTokenModName = gradleTokenVersion = GRADLETOKEN_VERSION diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/API/API_REFERENCE.java b/src/main/java/com/github/bartimaeusnek/bartworks/API/API_REFERENCE.java index 74c6a7c778..97de86473e 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/API/API_REFERENCE.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/API/API_REFERENCE.java @@ -22,5 +22,5 @@ package com.github.bartimaeusnek.bartworks.API; public final class API_REFERENCE { - public static final String VERSION = "@apiversion@"; + public static final String VERSION = "GRADLETOKEN_VERSION"; } -- cgit