Skip to content

Commit

Permalink
Adjust Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters committed Jan 8, 2025
1 parent 3ede25a commit f3bf2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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") ? 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
Expand Down

0 comments on commit f3bf2db

Please sign in to comment.