dweiss commented on code in PR #834:
URL: https://github.com/apache/lucene/pull/834#discussion_r857581902
##########
gradle/validation/spotless.gradle:
##########
@@ -110,10 +110,8 @@ configure(project(":lucene").subprojects) { prj ->
check.dependsOn v
v.dependsOn ":checkJdkInternalsExportedToGradle"
}
-}
-gradle.taskGraph.afterTask { Task task, TaskState state ->
- if (task.name == 'spotlessJavaCheck' && state.failure) {
- throw new GradleException("\n****************************\n*PLEASE RUN
./gradlew tidy!*\n****************************");
+ tasks.matching { task -> task.name == "spotlessJavaCheck" }.configureEach {
Review Comment:
Ah... I see what you mean. No, this won't work. This property is defined on
a concrete task type and not on the DSL extension (from which the various
spotless tasks are dynamically created).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]