You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2023/01/16 13:01:01 UTC

[jmeter] branch master updated: chore: suppress Gradle warning on rat and copyLibs tasks operating on the same files

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 cc08883e82 chore: suppress Gradle warning on rat and copyLibs tasks operating on the same files
cc08883e82 is described below

commit cc08883e82b6140d44939954afeee3d2a2f1954d
Author: Sandra Thieme <st...@gradle.com>
AuthorDate: Mon Jan 16 16:00:18 2023 +0300

    chore: suppress Gradle warning on rat and copyLibs tasks operating on the same files
    
    See https://github.com/apache/jmeter/pull/5757
---
 build.gradle.kts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index 61eef9e93e..c9016caea3 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -98,6 +98,10 @@ val rat by tasks.getting(org.nosphere.apache.rat.RatTask::class) {
     verbose.set(true)
     // Note: patterns are in non-standard syntax for RAT, so we use exclude(..) instead of excludeFile
     exclude(rootDir.resolve(".ratignore").readLines())
+    // Gradle validation might assume copyLibs and rat operate on the intersecting set of files
+    // Technically speaking, that is false positive since rat ignores *.jar files,
+    // and copyLibs copies jar files only
+    mustRunAfter(":src:dist:copyBinLibs", ":src:dist:copyLibs")
 }
 
 tasks.validateBeforeBuildingReleaseArtifacts {