This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e52a756bf chore: call verifyReleaseDependencies only when building 
release version (#5828)
0e52a756bf is described below

commit 0e52a756bf4831827f0f09897b390812d50e721c
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Thu Apr 27 21:04:06 2023 +0300

    chore: call verifyReleaseDependencies only when building release version 
(#5828)
    
    For non-snapshot versions, don't fail the build if the actual dependencies
    differ from the expected ones.
    
    It would enable accepting PRs from Renovate bot without resorting to manual 
resolution every time.
    
    Renovate supports postUpgradeTasks, however, it works with self-hosted 
runners only:
    https://docs.renovatebot.com/configuration-options/#postupgradetasks
---
 src/dist/build.gradle.kts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/dist/build.gradle.kts b/src/dist/build.gradle.kts
index 9bf30eb3b7..39b0c4e7c5 100644
--- a/src/dist/build.gradle.kts
+++ b/src/dist/build.gradle.kts
@@ -237,6 +237,10 @@ val verifyReleaseDependencies by tasks.registering {
         if (updateExpectedJars) {
             println("Updating ${expectedLibs.relativeTo(rootDir)}")
             actualLibs.copyTo(expectedLibs, overwrite = true)
+        } else if (version.toString().endsWith("-SNAPSHOT")) {
+            // Renovate requires self-hosted runner for executing 
postUpgradeTasks,
+            // so we can't make Renovate to update expected_release_jars.csv 
at the moment
+            logger.lifecycle(sb.toString())
         } else {
             throw GradleException(sb.toString())
         }

Reply via email to