From 32ee25673307b9d380435e32eec3c5c624db4a07 Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:53:48 +0100 Subject: [PATCH 1/3] Update project-properties.gradle --- project-properties.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project-properties.gradle b/project-properties.gradle index e2855f4db0..2feb2fc6a7 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 : false scriptsUrl = commonScriptsUrl + (releaseMode ? '5.12.0' : 'develop') migrationsUrl = migrationsScriptsUrl + (releaseMode ? '5.13.0' : 'develop') //TODO refactor with archive download From 3ede25a0a0241820a3a5495d8821fa2ce917f6c4 Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:59:49 +0100 Subject: [PATCH 2/3] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 291ee43c45..4622d340a0 100644 --- a/build.gradle +++ b/build.gradle @@ -73,7 +73,7 @@ dependencies { implementation 'com.epam.reportportal:plugin-api' } else { 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' } From f3bf2db4584a58cad479273300147f0152b83a2d Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel Date: Wed, 8 Jan 2025 11:15:27 +0100 Subject: [PATCH 3/3] Adjust Gradle --- build.gradle | 4 ++++ project-properties.gradle | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 4622d340a0..a343e56d0c 100644 --- a/build.gradle +++ b/build.gradle @@ -66,12 +66,16 @@ 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:3dfb9d8' implementation 'com.github.reportportal:plugin-api:8a1f61c' diff --git a/project-properties.gradle b/project-properties.gradle index 2feb2fc6a7..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") ? project.releaseMode : false + 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