jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimirsitni...@apache.org
Subject [jmeter] branch master updated: Remove dependency between checkstyle and compilation tasks
Date Thu, 20 Aug 2020 18:02:55 GMT
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 98c3552  Remove dependency between checkstyle and compilation tasks
98c3552 is described below

commit 98c355242668aab8231d2d8b0bf29d5efdf87e10
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
AuthorDate: Thu Aug 20 21:01:08 2020 +0300

    Remove dependency between checkstyle and compilation tasks
    
    See https://github.com/gradle/gradle/issues/14227
---
 build.gradle.kts | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/build.gradle.kts b/build.gradle.kts
index b03176c..4c7b329 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -320,8 +320,14 @@ allprojects {
             }
             val sourceSets: SourceSetContainer by project
             if (sourceSets.isNotEmpty()) {
+                val checkstyleTasks = tasks.withType<Checkstyle>()
+                checkstyleTasks.configureEach {
+                    // Checkstyle 8.26 does not need classpath, see https://github.com/gradle/gradle/issues/14227
+                    classpath = files()
+                }
+
                 tasks.register("checkstyleAll") {
-                    dependsOn(tasks.withType<Checkstyle>())
+                    dependsOn(checkstyleTasks)
                 }
                 tasks.register("checkstyle") {
                     group = LifecycleBasePlugin.VERIFICATION_GROUP


Mime
View raw message