Skip to content

Commit

Permalink
Update project-properties.gradle (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters authored Jan 8, 2025
1 parent e47b0f9 commit 8774792
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down
2 changes: 1 addition & 1 deletion project-properties.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8774792

Please sign in to comment.