You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/04/25 12:04:43 UTC

[GitHub] [lucene] dweiss commented on a diff in pull request #834: Upgrade spotless and use runToFixMessage for 'gradlew tidy' hint.

dweiss commented on code in PR #834:
URL: https://github.com/apache/lucene/pull/834#discussion_r857552731


##########
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:
   I moved it up.



-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org