diff --git a/TelegramBotAPI-extensions-api/build.gradle b/TelegramBotAPI-extensions-api/build.gradle index 88e7640707..0cbe7c0136 100644 --- a/TelegramBotAPI-extensions-api/build.gradle +++ b/TelegramBotAPI-extensions-api/build.gradle @@ -37,7 +37,7 @@ kotlin { commonMain { dependencies { implementation kotlin('stdlib') - if (project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") { + if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") { api "${project.group}:TelegramBotAPI:$library_version" } else { implementation project(":TelegramBotAPI")