From 8774792c81de2d0f7a05b66350463734c78dd29c Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:07:37 +0100 Subject: [PATCH] Update project-properties.gradle (#2137) --- build.gradle | 6 +++++- project-properties.gradle | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 291ee43c45..a343e56d0c 100644 --- a/build.gradle +++ b/build.gradle @@ -66,14 +66,18 @@ dependencyManagement { } } +println("Release mode: $releaseMode") + dependencies { if (releaseMode) { + println("Using release dependencies") implementation 'com.epam.reportportal:commons-dao' implementation 'com.epam.reportportal:commons' implementation 'com.epam.reportportal:plugin-api' } else { + println("Using snapshot dependencies") implementation 'com.github.reportportal:commons-dao:72f99ff' - implementation 'com.github.reportportal:commons:26ab837' + implementation 'com.github.reportportal:commons:3dfb9d8' implementation 'com.github.reportportal:plugin-api:8a1f61c' } diff --git a/project-properties.gradle b/project-properties.gradle index e2855f4db0..12f29986db 100755 --- a/project-properties.gradle +++ b/project-properties.gradle @@ -13,7 +13,7 @@ project.ext { 'class' : 90 ] isDebugMode = System.getProperty("DEBUG", "false") == "true" - releaseMode = project.hasProperty("releaseMode") + releaseMode = project.hasProperty("releaseMode") ? project.releaseMode.toBoolean() : false scriptsUrl = commonScriptsUrl + (releaseMode ? '5.12.0' : 'develop') migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.13.0' : 'develop') //TODO refactor with archive download